Posts: 3
Threads: 1
Joined: Nov 2020
Reputation:
0
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
Posts: 3
Threads: 1
Joined: Nov 2020
Reputation:
0
Anyone who can support me?
Posts: 107
Threads: 80
Joined: May 2004
Reputation:
3
07-12-2020, 05:15 PM
(This post was last modified: 28-07-2021, 09:53 AM by david ward.
Edit Reason: Updated broken link
)
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
Posts: 3
Threads: 1
Joined: Nov 2020
Reputation:
0
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?
Posts: 53
Threads: 2
Joined: Dec 2004
Reputation:
0
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>
Posts: 107
Threads: 80
Joined: May 2004
Reputation:
3
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