Misra C 2012------------
Yes Misra C 2012: 1.1
Yes Misra C 2012: 1.2
Yes Misra C 2012: 1.3
Yes Misra C 2012: 1.4 amendment:2
No Misra C 2012: 1.5 amendment:3 require:premium
Yes Misra C 2012: 2.1
Yes Misra C 2012: 2.2
Yes Misra C 2012: 2.3
Yes Misra C 2012: 2.4
Yes Misra C 2012: 2.5
Yes Misra C 2012: 2.6
Yes Misra C 2012: 2.7
Yes Misra C 2012: 2.8
amendment 3 and 4 are not covered in open source Cppcheck they are covered in premium.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when using cppcheck --addon=misra.json, checher report says MISRA C is not enabled
even though it ran misra checks, generated error xml.
Yeah it did not work well in latest release. It's fixed in Cppcheck HEAD and will be released soon.
I am seeing the same issue in v2.15.0 dev built directly from source on the main branch of github
Last edit: Jonathan Mullen 2024-05-17
If I do this with latest HEAD:
I get this output in the report.txt:
amendment 3 and 4 are not covered in open source Cppcheck they are covered in premium.
So that works for me, but the following do not:
2.
with json file contents:
3.
with json file contents:
In all these 3 cases I see:
So it seems that it is not fixed if the addon is specified via a json file or with the .py suffix
Last edit: Jonathan Mullen 2024-05-20
Thanks for reporting this bug. I created ticket https://trac.cppcheck.net/ticket/12751