diff --git a/tests/misra/test_misra.sh b/tests/misra/test_misra.sh index 982a62e7402..c0cda1d22cd 100755 --- a/tests/misra/test_misra.sh +++ b/tests/misra/test_misra.sh @@ -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,