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

Workaround cppcheck ignoring -i libpromises/cf3lex.c #5609

Merged

Conversation

vpodzime
Copy link
Contributor

When running cppcheck in static checks, we use -i libpromises/cf3lex.c in order to make cppcheck ignore the generated cf3lex.c file. However, the new version of cppcheck ignores this option and fails on issues found in the file.

However, we don't want this file or any other generated files except for bootstrap.inc which contains the bootstrap policy. So we can run make clean and make -C libpromise/ boostrap.inc before running cppcheck to get a cleaner environment.

When running cppcheck in static checks, we use `-i
libpromises/cf3lex.c` in order to make cppcheck ignore the
generated cf3lex.c file. However, the new version of cppcheck
ignores this option and fails on issues found in the file.

However, we don't want this file or any other generated files
except for bootstrap.inc which contains the bootstrap policy. So
we can run `make clean` and `make -C libpromise/ boostrap.inc`
before running cppcheck to get a cleaner environment.
@vpodzime
Copy link
Contributor Author

A follow-up to #5607

@vpodzime
Copy link
Contributor Author

Reported as https://bugzilla.redhat.com/show_bug.cgi?id=2311947

@vpodzime vpodzime merged commit 8334505 into cfengine:master Sep 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants