mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
Ignore advisory Misra 19.2: the union keyword should not be used
This commit is contained in:
2
tests/misra/suppressions.txt
Normal file
2
tests/misra/suppressions.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# Advisory: union types can be used
|
||||
misra.19.2
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user