-
Notifications
You must be signed in to change notification settings - Fork 362
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
cppcheck: missing rule unmatchedSuppression
#2419
Comments
Hello @gerboengels,
These "errors" sound more like internal CppCheck errors/warnings/hints than static code analysis issues? I'm not sure if they should be visible in the SQ UI (or better just in the LOG file)?
This message is from the scanner on the scanner side. Not sure if the scanner is able to find out which rules are activated (available) on server side? This needs to be investigated further... Regards, |
I agree, except for Our team found this |
Hi @gerboengels, In principle, it would be no problem to add the "internal messages" back into the list. The question is how to get a complete list of the internal messages? With For issues SQ knows in principle three output possibilities:
Regards, |
@gerboengels you can try with latest snapshot |
Since commit 044c183 (PR #1837) a number of cppcheck-rules are lost, like
unmatchedSuppression
.This was probably because of the cleanup mentioned in that PR, as this rule is not present in the
cppcheck --errorlist
output.However, I do get this error in my cppcheck output (cppcheck 2.8).
I don't know if it should be filed as a cppcheck bug (missing output from
--errorlist
), or sonar-cxx should hardcode this rule in the rulelist.Same goes (at least in my case, there might be more) for errors
unknownMacro
,internalAstError
,syntaxError
andcppcheckError
, although you could argue those are more configuration errors than code analysis results.By the way, I had some trouble investigating this issue. The logs said
Processing successful, saved new issues=61
(which is the number of issues in my xml), but none of them appeared in Sonar. Even when scanning withsonar-scanner -Dsonar.verbose=true -X
the logs didn't mention that these 61 issues couldn't be matched against a rule. That would have saved me some time investigating.CXX version 2.0.7.
The text was updated successfully, but these errors were encountered: