-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add MISRA rule checking to static analysis
- Loading branch information
1 parent
0f0ea69
commit bb53da4
Showing
8 changed files
with
5,024 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# --enable sensitive \ | ||
# --analyzers cppcheck \ | ||
CodeChecker analyze compile_commands.json \ | ||
--ignore .CodeChecker/skipfile.txt \ | ||
--analyzer-config cppcheck:addons=.cppcheck/misra.json \ | ||
-o reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"script": "misra.py", | ||
"args": [ | ||
"--rule-texts=misra_c_2023__headlines_for_cppcheck.txt" | ||
"--rule-texts=.cppcheck/misra_c_2023__headlines_for_cppcheck.txt" | ||
] | ||
} |
Oops, something went wrong.