Hello,
I like to use the misra text feature. Still have to buy the misra.pdf. But before doing so I like to understand the required format of the misra text file? How does cppcheck (misra.py) find the appropriate rule to display?
Thanks,
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I like to use the misra text feature. Still have to buy the misra.pdf. But before doing so I like to understand the required format of the misra text file? How does cppcheck (misra.py) find the appropriate rule to display?
Thanks,
Peter
Hello Peter,
You can copy the rule texts from
“Appendix A - Summary of guidelines” from the PDF and paste those into the text file. Everything should work.
Here is an example of correct rules text used in tests: https://github.com/danmar/cppcheck/blob/ec13f5fe5c27488f4b03caf153637ce1846d0c0b/addons/test/misra/misra2012_rules_dummy_ascii.txt#L1 .
Hello Georgiy,
this worked for me. Is the cert.py addon only available in the commercial version?
Best regards,
Peter
Yes.
It was removed here: https://github.com/danmar/cppcheck/commit/92316b07c8a016496f19ea91181927b60d713c2c . You can probably make it work by just restoring the Python script.