CodeQL: Outdated version of cppcheck? #142562
Replies: 4 comments 1 reply
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Hi @mcandre, The cppcheck version that gets used will be the latest version available on Ubuntu 22.04. Did you check whether that version supports |
Beta Was this translation helpful? Give feedback.
-
Possible to update the version of Ubuntu that CodeQL uses, from 22.04 to a more recent edition, such as the current LTS release 24.04(.1)? |
Beta Was this translation helpful? Give feedback.
-
I appreciate the level of detail. Indeed, cppcheck 2.11 adds the --check-level flag: https://sourceforge.net/p/cppcheck/news/2023/06/cppcheck-211/ Ubuntu 22.04's cppcheck is older, at cppcheck 2.7: https://packages.ubuntu.com/jammy/cppcheck Ubuntu 24.04 may suffice, at cppcheck 2.13: |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
I recently added the
--check-level=exhaustive
flag to cppcheck in my project's linting configuration, in order to catch more code flaws. This works fine locally.However, CodeQL tries to do the same thing then fails, with
cppcheck: error: unrecognized command line option: "--check-level=exhaustive"
.https://github.com/mcandre/rez/actions/runs/10262901239/job/28393546685
Perhaps the solution is as simple as updating the version of cppcheck that CodeQL targets, to support more modern linter/SAST options.
Beta Was this translation helpful? Give feedback.
All reactions