mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adds check-coding-style target to our Makefiles
This commit is contained in:
13
Makefile.am
13
Makefile.am
@@ -25,10 +25,12 @@ MAINTAINERCLEANFILES = \
|
||||
build/ltoptions.m4 \
|
||||
build/ltsugar.m4 \
|
||||
build/ltversion.m4 \
|
||||
coding-style.txt \
|
||||
compile \
|
||||
config.guess \
|
||||
config.sub \
|
||||
configure \
|
||||
cppcheck.txt \
|
||||
depcomp \
|
||||
install-sh \
|
||||
ltmain.sh \
|
||||
@@ -52,6 +54,17 @@ cppcheck:
|
||||
--std=posix . 2> cppcheck.txt
|
||||
cat cppcheck.txt
|
||||
|
||||
check-style: check-coding-style
|
||||
|
||||
check-coding-style:
|
||||
-cpplint.py \
|
||||
$$(find . -name "*.h" -o -name "*.cc" | xargs) 2>&1 \
|
||||
| egrep -v $$(echo -n "catchall" ; \
|
||||
for i in $$(cat test/coding_style_suppressions.txt); do echo -n "|"$$i; done) \
|
||||
| sed 's/^\./warning: ./g' > coding-style.txt
|
||||
-cat coding-style.txt
|
||||
|
||||
|
||||
@VALGRIND_CHECK_RULES@
|
||||
VALGRIND_SUPPRESSIONS_FILES = valgrind_suppressions.txt
|
||||
|
||||
|
Reference in New Issue
Block a user