Skip to content

Commit 85423bd

Browse files
authored
Fix #13649 (manual: The misry.py rule texts should be fetched from misra) [skip ci] (danmar#7315)
1 parent 70a1e08 commit 85423bd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

man/manual.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,9 +950,12 @@ Cppcheck is distributed with a few addons which are listed below.
950950

951951
[misra.py](https://github.com/danmar/cppcheck/blob/main/addons/misra.py) is used to verify compliance with MISRA C 2012, a proprietary set of guidelines to avoid questionable code, developed for embedded systems.
952952

953-
This standard is proprietary, and open source tools are not allowed to distribute the Misra rule texts. Therefore Cppcheck is not allowed to write the rule texts directly. Cppcheck is allowed to distribute the rules and display the id of each violated rule (for example, [c2012-21.3]). The corresponding rule text can also be written however you need to provide that. To get the rule texts, please buy the PDF from MISRA (https://www.misra.org.uk). If you copy the rule texts from "Appendix A - Summary of guidelines" in the PDF and write those in a text file, then by using that text file Cppcheck can write the proper warning messages. To see how the text file can be formatted, take a look at the files listed here: https://github.com/danmar/cppcheck/blob/main/addons/test/misra/. You can use the option `--rule-texts` to specify your rules text file.
953+
The misra rule texts should be downloaded from MISRA:
954+
https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/tools
954955

955-
The full list of supported rules is available on [Cppcheck](https://cppcheck.sourceforge.io/misra.php) home page.
956+
Use the option `--rule-texts` to specify the rules text file that has been downloaded from MISRA.
957+
958+
Checkers in open source Cppcheck only cover MISRA rules partially.
956959

957960
### y2038.py
958961

0 commit comments

Comments
 (0)