Skip to content

Commit

Permalink
Cppcheck: add misra checks
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Feb 29, 2024
1 parent 4f1dda1 commit 5bcf11d
Show file tree
Hide file tree
Showing 3 changed files with 736 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
ref: ${{ github.ref }}

- name: Check
run: cppcheck --quiet --error-exitcode=1 src/
run: cppcheck --addon=misra.json --quiet --error-exitcode=1 src/
7 changes: 7 additions & 0 deletions misra.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"script": "misra.py",
"args": [
"--rule-texts=misra.md",
"--suppress-rules 2.7,3.1,7.4,8.14,8.2,8.4,8.9,9.2,10.1,10.3,10.4,10.5,10.6,11.1,11.3,11.5,11.8,12.3,13.3,13.4,14.2,14.4,15.5,16.2,16.3,16.4,16.5,16.6,17.7,17.8,18.4,18.8,19.2,20.5,20.7,21.15,21.16"
]
}
Loading

0 comments on commit 5bcf11d

Please sign in to comment.