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

Getting the list of suppressions? #231

Open
Scylardor opened this issue Nov 30, 2024 · 2 comments
Open

Getting the list of suppressions? #231

Scylardor opened this issue Nov 30, 2024 · 2 comments

Comments

@Scylardor
Copy link

Hi,
I would like to know if there's a way with the add-in to export the list of suppressions that are configured within visual studio to a file.

That would help me to setup a CI pipeline that uses the same suppressions as the add-in, otherwise issues will be correctly ignored in my IDE, but the CI pipeline will trigger them and it would be a bit annoying to have to create and maintain this file manually...

@VioletGiraffe
Copy link
Owner

Hi, I could add such a function, but what format should the file have?

@Scylardor
Copy link
Author

Well, it ideally would be in the form of a cppcheck suppression file as described in the cppcheck manual, page 17 (I'm referring to this document: https://cppcheck.sourceforge.io/manual.pdf ).
I'm not sure how the global/solution/project distinction would work, but at the moment, for my use case at least, I'm only interested in global settings anyway.
This way, I configure in visual studio to suppress the warnings I don't need, and if I'm able to export to a file these suppressions, I'll be able to feed the same file to cppcheck with --suppressions-list in my CI pipeline. The CI will then stop raising "false positives" that I ignored in the IDE on purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants