check: Add supression file for false positives and pending fixes for cppcheck tool #4766
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For past few months, I have been working on sorting errors thrown by
cppcheck
static analysis tool into true positives and false positives manually and fixing the true positives. I believe I was able to fix all the issues arising from the tool.The file added as part of this PR contains information on false positives and some true positives (for which pull requests are opened and are in discussion. #4702, #4638, #4500, #4499). For false positives which are not obvious, I have added explanations on why there tagged as such.
Once this file is added to the project, we can work on a CI action which takes this suppression file and runs
cppcheck
on any new changes to the project, thus finding new issues if there are any.Sample way to run using the suppressions file is:
cppcheck --suppressions-list=.cppcheck-suppressions <path>