Skip to content

Commit

Permalink
verify checks done
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed May 26, 2024
1 parent 97b2ca8 commit 704a33a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/misra/test_misra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ cppcheck() {

# note that cppcheck build cache results in inconsistent results as of v2.13.0
OUTPUT=$DIR/.output.log
CHECKLIST=$DIR/checkers.txt
$CPPCHECK_DIR/cppcheck --inline-suppr -I $PANDA_DIR/board/ \
-I "$(arm-none-eabi-gcc -print-file-name=include)" \
-I $PANDA_DIR/board/stm32f4/inc/ -I $PANDA_DIR/board/stm32h7/inc/ \
--suppressions-list=$DIR/suppressions.txt --suppress=*:*inc/* \
--suppress=*:*include/* --error-exitcode=2 --check-level=exhaustive \
--platform=arm32-wchar_t4 $COMMON_DEFINES \
--platform=arm32-wchar_t4 $COMMON_DEFINES --checkers-report=$CHECKLIST \
"$@" |& tee $OUTPUT

# cppcheck bug: some MISRA errors won't result in the error exit code,
Expand Down

0 comments on commit 704a33a

Please sign in to comment.