-
Notifications
You must be signed in to change notification settings - Fork 1.5k
enabled information
messages in self-check
#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
base: main
Are you sure you want to change the base?
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
That does not occur in the external sources so we need to make that suppression conditional. |
90c463d
to
a99c86f
Compare
This comment was marked as resolved.
This comment was marked as resolved.
I filed https://trac.cppcheck.net/ticket/13663 about not reporting unmatched |
a99c86f
to
155e05f
Compare
This occurs when we can code which only includes that file. The warning should be reported on the implementation instead. I filed https://trac.cppcheck.net/ticket/13667 about it. |
155e05f
to
956b838
Compare
695871c
to
c240fdb
Compare
c240fdb
to
9627c0a
Compare
9627c0a
to
502b2be
Compare
502b2be
to
98dbc7b
Compare
The
unmatchedSuppression
messages 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.