-
Notifications
You must be signed in to change notification settings - Fork 1.5k
enabled information messages in selfchecks / mitigated unmatchedSuppression warnings
#3090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
958466f to
ea5eb5f
Compare
ea5eb5f to
2fec19b
Compare
2fec19b to
e212c7d
Compare
e212c7d to
34b87f6
Compare
|
So we have inline suppressions, but don't check if they are (still) matched? Ugh. |
information messages in self-check
fcb246a to
68bfc72
Compare
|
The "issue" we are having is that we are using a single suppression file for multiple different Cppcheck analysis invocations. This causes The first could be solved by using more granular suppressions. That might not be what you want. We possible need some way to filter out error IDs without suppressing them indicating that you just not care about them. Suppression should also be considered temporary hence the The latter cannot be solved easily. We adjust the warning to only report them as unmatched if neither the regular expression nor the ID matched. That would require some re-working of the suppression code (which might happen as part of the still in progress executor rework) but might result in lots of outdated entries in the suppression file. Another issue is that you also cannot control |
|
As most (all) of the issues are with having a suppression file and those do not apply to inline suppression at all maybe we should introduce |
68bfc72 to
f86dcf6
Compare
Sounds reasonable. Unmatched inline suppressions are more problematic anyway. |
f86dcf6 to
fd98ecc
Compare
fd98ecc to
a812dc2
Compare
a812dc2 to
306a26d
Compare
306a26d to
2d7e16d
Compare
2d7e16d to
5095a98
Compare
I filed https://trac.cppcheck.net/ticket/13659 about the invalid location. I also filed https://trac.cppcheck.net/ticket/13660 about such warnings being shown even if no files matching the wildcard were encountered. |
These are a bit a of problem. The warnings are correct but we have a dedicated job in a different workflow which takes care of this and the check is not enabled in this case. So I have no idea how we can avoid these. This also highlights that the Update: We could just hack these out by not reporting them if |
This will only trigger with the premium selfcheck so we should ignore these suppressions if it is not premium - which would be a horrible hack IMO. Update: Well - I think we already have that "hack" in place for |
5095a98 to
90c463d
Compare
33511ee to
3ffb291
Compare
information messages in self-checkinformation messages in selfchecks / mitigated unmatchedSuppression warnings
3ffb291 to
b56063c
Compare
b56063c to
03b1a61
Compare
| contents: read | ||
|
|
||
| jobs: | ||
| # TODO: enable information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot enable these yet because we get warnings about the non-unusedFunction inline suppressions. That requires the UNUSEDFUNCTION_ONLY to be adjusted. I will do that in a follow-up to not delay this PR any longer.
03b1a61 to
17bf341
Compare
17bf341 to
424e25d
Compare
00ce4eb to
cad1d67
Compare
cad1d67 to
e9591e3
Compare
|
|
@danmar @chrchr-github This is finally ready for review. 🥳 |



The
unmatchedSuppressionmessages might be a bug where the regular expression appears to be incorrectly validated. I saw this with local runs but didn't look into it yet. There was also different behavior between using no threads and-j. I will file tickets as soon as I have the time to look at it.