Skip to content

Commit cec5179

Browse files
committed
Suppress Cppcheck checking level
Refine the pre-commit hook to enforce a minimum Cppcheck version of 1.90, alerting users with an error message and providing guidance on compiling Cppcheck from source if their version is outdated. Additionally, upgrade the hook for "--check-level=exhaustive" option against Cppcheck versions 2.11 and above, ensuring a comprehensive analysis. This adjustment leverages the enhanced capabilities available from version 2.11, promoting more detailed code quality checks. This commit is aiming for fixing commit #3aa0d55's misinformed title. We just add comments to explain why this changes.
1 parent 3aa0d55 commit cec5179

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/pre-commit.hook

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ for f in *.c; do
55
CPPCHECK_unmatched="$CPPCHECK_unmatched --suppress=unmatchedSuppression:$f"
66
done
77

8+
# We suppress the checkLevelNormal warning for Cppcheck versions 2.11 and above.
9+
# Please refer to issues/153 for more details.
810
CPPCHECK_suppresses="--inline-suppr harness.c \
911
--suppress=missingIncludeSystem \
1012
--suppress=noValidConfiguration \

0 commit comments

Comments
 (0)