-
Notifications
You must be signed in to change notification settings - Fork 223
Suppress cppcheck exceptions #606
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
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.
Currently cppcheck already passes on main, while it does not pass on your local machine.
We suspect this is due to clang compiler being used? So can the first commit in this PR change our CI such that errors you bypass are reproducible there?
Also: current suppressions in the code mostly have explanations to them as to why they are suppressed, not fixed. Could we do the same?
e4a0ffe
to
e75ab51
Compare
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.
Added a commit with job that runs analyzers on mac. It is not clear how to fix the issues.
9ed7f65
to
007c75b
Compare
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.
Good. Now I see what has failed. We actually can fix most of them!
007c75b
to
b500a83
Compare
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.
Updated analyzers workflow as suggested.
Added code suggestions to remove mac cpp-checks.
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.
As we agreed to not turn on cppcheck on tests, then I am happy with this PR - rebase and merge at will 🐱
b500a83
to
6ad9ad0
Compare
6ad9ad0
to
13f0be1
Compare
The objective is to run cppcheck during rebase testing. Adding suppress comments such that the codebase can pass without error or warning flags being raised.