diff --git a/Makefile.am b/Makefile.am index 98cc39c6..ee88af38 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,6 +36,9 @@ MAINTAINERCLEANFILES = \ missing \ depcomp +cppcheck: + cppcheck --suppressions-list=./test/cppcheck_suppressions.txt --enable=all --inconclusive --template="{file},{line},{severity},{id},{message}" -U YYSTYPE -U YY_USER_INIT --std=posix . + @VALGRIND_CHECK_RULES@ VALGRIND_SUPPRESSIONS_FILES = valgrind_suppressions.txt diff --git a/test/cppcheck_suppressions.txt b/test/cppcheck_suppressions.txt new file mode 100644 index 00000000..baad7622 --- /dev/null +++ b/test/cppcheck_suppressions.txt @@ -0,0 +1,24 @@ +unusedFunction:src/transaction.cc +unusedFunction:src/utils/mbedtls/sha1.c +unusedFunction:src/utils/mbedtls/md5.c +unusedFunction:src/utils/mbedtls/base64.c +unusedFunction:src/modsecurity.cc +unusedFunction:src/utils/msc_tree.cc +unusedFunction:src/utils/acmp.cc +unusedFunction:src/macro_expansion.cc +unusedFunction:src/rules.cc +unusedFunction:test/optimization/optimization.cc +unusedFunction:src/utils.cc +*:src/parser/seclang-parser.hh +*:src/parser/seclang-scanner.cc +*:others/libinjection/src/libinjection_html5.c +*:others/libinjection/src/libinjection_sqli.c +*:others/libinjection/src/libinjection_xss.c +*:others/libinjection/src/libinjection_xss.c +*:others/libinjection/src/reader.c +*:others/libinjection/src/sqli_cli.c +*:others/libinjection/src/test_speed_sqli.c +*:others/libinjection/src/test_speed_xss.c +*:others/libinjection/src/testdriver.c + +