Adds cppcheck target on makefile

This commit is contained in:
Felipe Zimmerle 2016-07-05 14:40:34 -03:00 committed by Felipe Zimmerle
parent 7bcc9cf0d9
commit ac64983276
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 27 additions and 0 deletions

View File

@ -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

View File

@ -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