Skip to content
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

ci: add unmatchedSuppression to cppcheck suppressions #127

Conversation

mitsudome-r
Copy link
Member

Description

This PR adds "unmatchedSuppression" to the suppression list for cppcheck.
When we run cppcheck-differential against a PR, it will only run against the packages that were modified. If the modified packages do not contain any errors that is listed in .cppcheck_suppressions, it will complain that we have unnecessary suppression given to cppcheck.

For example, this PR fails with cppcheck because the modified package does not contain error from missingIncludeSystem. (report is here)

image

Related links

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@mitsudome-r mitsudome-r requested review from youtalk and xmfcx December 17, 2024 06:36
Copy link

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

Copy link
Contributor

@xmfcx xmfcx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you tested it and it fixed the issue, let's merge it.

@mitsudome-r mitsudome-r merged commit 09d77e4 into autowarefoundation:main Dec 17, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants