-
Notifications
You must be signed in to change notification settings - Fork 790
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
Finish MISRA coverage #1794
Comments
@0x41head @samrum @bongbui321 I missed these in my initial count, but the ones that don't have "misra" in the name also count:
|
An update on
In the case of pandas, since we are only checking a couple of files, the cppchecker doesn't get the entire context of the codebase. |
Want to open a PR to run on the whole repo? Any reason not to do this? |
10.3 seems to have false positives for bools. Putting up an extra $150 (for $200 total on that rule) to fix it in cppcheck and make an upstream PR to cppcheck. We can potentially ship the patch here first if they don't merge it quickly. https://sourceforge.net/p/cppcheck/discussion/development/thread/c96d6d44f1/ |
Running over the whole repo would require a lot of time. Didn't really think the benefits justified the extra time required. |
@0x41head I got the unused check running fast, but there are a few false positives (#1875). Bounty is still up for grabs if you can figure those out and get https://github.com/commaai/panda/actions/runs/7944491038/job/21690064166
|
I started |
Current status:
I will be performing the integration and validation of the remaining rules so that they are easy to merge #1954. |
In #926, we updated cppcheck to the latest version which completed cppcheck's MISRA coverage. These new checks were suppressed in that PR in order to get the cppcheck version updated, and now we want to enable those checks and fix the violations.
Read about MISRA C:2012 here; the guidelines and information about them can be found searching online (ChatGPT also knows about it).
$50 for each rule addressed, either fixed all violations or suppressed for good reason. There's 28 new rules to enable, and progress can be checked here.
Example for
misra-c2012-2.2
: f64ba24.The text was updated successfully, but these errors were encountered: