Skip to content

fixed #13641 - improved ignoring directories and overall testing of ignore#7222

Merged
firewave merged 11 commits intodanmar:mainfrom
firewave:ignore
Mar 15, 2025
Merged

fixed #13641 - improved ignoring directories and overall testing of ignore#7222
firewave merged 11 commits intodanmar:mainfrom
firewave:ignore

Conversation

@firewave
Copy link
Collaborator

No description provided.

@firewave

This comment was marked as resolved.

@firewave firewave force-pushed the ignore branch 2 times, most recently from d8f70f6 to aed42c8 Compare January 19, 2025 19:22
@firewave firewave force-pushed the ignore branch 4 times, most recently from 2201168 to f975fe6 Compare February 15, 2025 13:21
@firewave firewave changed the title improved tests showing shortcomings of ignoring files improved ignoring directories and improved overall testing of ignore Feb 15, 2025
@firewave firewave changed the title improved ignoring directories and improved overall testing of ignore improved ignoring directories and overall testing of ignore Feb 15, 2025
@firewave firewave force-pushed the ignore branch 2 times, most recently from 8e7ea9f to 2aaea8b Compare February 16, 2025 22:13
@firewave firewave marked this pull request as ready for review February 16, 2025 22:13
@firewave firewave force-pushed the ignore branch 2 times, most recently from 52966c8 to 283095d Compare February 16, 2025 22:51
@firewave firewave marked this pull request as draft February 16, 2025 22:55
@firewave firewave marked this pull request as ready for review February 16, 2025 23:33
@firewave firewave changed the title improved ignoring directories and overall testing of ignore fixed #13641 - improved ignoring directories and overall testing of ignore Feb 16, 2025

bool isdir = false;
if (!Path::exists(path, &isdir) && mSettings.debugignore)
std::cout << "path to ignore does not exist: " << path << std::endl;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a better way to output this. A plugin might expect "cppcheck: error: ..." if we are fortunate but it will not expect this output :-(
if it at least starts with "cppcheck: " that is better imho.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of any of the debug messages are currently prefixed. That also needs to go through a dedicated logger/stream but is currently not the case and will probably be some work. That is something to maybe look into after https://trac.cppcheck.net/ticket/13200 is fixed.

@firewave
Copy link
Collaborator Author

No further feedback for almost three weeks - merging.

@firewave firewave merged commit 1d1093d into danmar:main Mar 15, 2025
60 checks passed
@firewave firewave deleted the ignore branch March 15, 2025 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants