Misra Rules for cppcheck - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4) +--- Forum: General Questions (https://forum.misra.org.uk/forumdisplay.php?fid=27) +--- Thread: Misra Rules for cppcheck (/showthread.php?tid=1551) |
Misra Rules for cppcheck - julred - 04-11-2020 Hi everyone, I'm using the application cppcheck for my existing development. Now I'd like to add the functionality of checking my sources against Misra rules. Therefor I need the Misra Rules in a .txt file format. Where can I get it? BR Re: Misra Rules for cppcheck - julred - 04-12-2020 Anyone who can support me? Re: Misra Rules for cppcheck - david ward - 07-12-2020 Please see this topic for general guidance on open source checkers https://forum.misra.org.uk/thread-884.html Depending on your organization, MISRA can provide you with a license to use the rules internally in this way. Please contact us directly to discuss. Re: Misra Rules for cppcheck - julred - 29-01-2021 Thanks for posting this link. In general I'm looking for the raw rules text. The tool I'd like to use has the following CLI parameter: python misra.py --rule-texts= main.cpp.dump I only have the following documents: MISRA Compliance:2020 Achieving compliance with MISRA Coding Guidelines, February 2020 MISRA C:2012 Amendment 2 Updates for ISO/IEC 9899:2011 Core functionality, February 2020 Where do I get the correct rules text, which are functional with cppcheck? Re: Misra Rules for cppcheck - MISRA Reply - 29-01-2021 Your starting point would be to buy a copy of MISRA C from our webstore. The document contains further explanation of the rules which will help you in understanding tool messages. If you want to use the rule text in some other way we would need to understand whether this was for personal use only or within a workgroup. Please contact us to discuss your requirements in more detail. RE: Misra Rules for cppcheck - andreas.willig - 28-07-2021 (07-12-2020, 05:15 PM)david ward Wrote: Please see this topic for general guidance on open source checkers https://www.misra.org.uk/forum/viewtopic.php?f=56&t=1189 Hello together, i did already buy MISRA C 2012 and MISRA C++ 2008, and want to use it also with cppcheck. The link given here is broken (404) is this thread article readable somewhere else? The misra.py script which goes with CPP check also targets this (not existing) link. Regards Andreas RE: Misra Rules for cppcheck - david ward - 28-07-2021 Hi thanks for the question, I've updated the link in the post above, it is now https://forum.misra.org.uk/thread-884.html. We don't have control over external links so you will need to ask them to update it. We do offer a license to use the headline rule text in conjunction with a tool such as CPPcheck where the tool vendor has not licensed the rules themselves, please use the contact form (on the main website) if you would like to discuss this further. |