C/C++ rule supression #11787
Replies: 1 comment 5 replies
-
Hi @MFaisalZaki, Thanks for your question.
For the latest discussion regarding alert suppression via code comments see #11427. To suppress alerts in a code scanning context, you can dismiss them as explained in the issue you linked to. Alternatively, you could use the filter sarif action from https://github.com/advanced-security/filter-sarif.
Sarif is an open standard based on JSON for which tools and libraries are available: https://sarifweb.azurewebsites.net/. So it should be straightforward to write your own scripts that remove entries. For an example see the python script that is part of the filter sarif action that I linked above. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to suppress the alerts on the c/c++ code base like the one presented in LGTM?
I don't know the status of this issue.
And if I have
sarif
file how can I remove entries from it in case I don't usecodeql-actions
Beta Was this translation helpful? Give feedback.
All reactions