mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
Cppcheck checklist bugfix (#1969)
* Fix cppcheck checklist diff * cppcheck already has exitcode=2
This commit is contained in:
@@ -22,7 +22,7 @@ if [ -z "$SKIP_TABLES_DIFF" ]; then
|
||||
python $CPPCHECK_DIR/addons/misra.py -generate-table > coverage_table
|
||||
if ! git diff --quiet coverage_table; then
|
||||
echo -e "${YELLOW}MISRA coverage table doesn't match. Update and commit:${NC}"
|
||||
exit 2
|
||||
exit 3
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -79,7 +79,7 @@ printf "\n${GREEN}Success!${NC} took $SECONDS seconds\n"
|
||||
|
||||
# ensure list of checkers is up to date
|
||||
cd $DIR
|
||||
if [ -z "$SKIP_TABLES_DIFF" ] && ! git diff --quiet coverage_table; then
|
||||
if [ -z "$SKIP_TABLES_DIFF" ] && ! git diff --quiet $CHECKLIST; then
|
||||
echo -e "\n${YELLOW}WARNING: Cppcheck checkers.txt report has changed. Review and commit...${NC}"
|
||||
exit 3
|
||||
exit 4
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user