Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Misra Rules for cppcheck
#1
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
Reply
#2
Anyone who can support me?
Reply
#3
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.
Dr David Ward
MISRA Operations Director
Reply
#4
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?
Reply
#5
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.
<t></t>
Reply
#6
(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

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.

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
Reply
#7
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.
Dr David Ward
MISRA Operations Director
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)