Skip to content

Commit

Permalink
Ignore advisory Misra 19.2: the union keyword should not be used
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Jul 7, 2019
1 parent e6dc417 commit a4554e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/misra/suppressions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Advisory: union types can be used
misra.19.2
4 changes: 2 additions & 2 deletions tests/misra/test_misra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ make -j4
cd ../../../

# panda code
tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/main.c 2>/tmp/misra/cppcheck_output.txt || true
tests/misra/cppcheck/cppcheck --suppressions-list=tests/misra/suppressions.txt --dump --enable=all --inline-suppr board/main.c 2>/tmp/misra/cppcheck_output.txt || true
python tests/misra/cppcheck/addons/misra.py board/main.c.dump 2>/tmp/misra/misra_output.txt || true

# violations in safety files
Expand All @@ -24,5 +24,5 @@ then
fi

# pedal code
tests/misra/cppcheck/cppcheck --dump --enable=all --inline-suppr board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true
tests/misra/cppcheck/cppcheck --suppressions-list=tests/misra/suppressions.txt --dump --enable=all --inline-suppr board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true
python tests/misra/cppcheck/addons/misra.py board/pedal/main.c.dump 2>/tmp/misra/misra_pedal_output.txt || true

0 comments on commit a4554e3

Please sign in to comment.