Skip to content

Commit 8bb9015

Browse files
committed
Explain the reason to skip static analysis over http parser
1 parent 7941392 commit 8bb9015

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/pre-commit.hook

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# http-parser was taken from Node.js, and we don't tend to validate it.
34
CPPCHECK_suppresses="--suppress=missingIncludeSystem \
4-
--suppress=unusedFunction:http_parser.c \
5+
--suppress=unusedFunction:http_parser.c \
56
--suppress=duplicateBreak:http_parser.c \
67
--suppress=shadowVariable:http_parser.c"
78
CPPCHECK_OPTS="-I. --enable=all --error-exitcode=1 --force $CPPCHECK_suppresses"

0 commit comments

Comments
 (0)