cppcheck ignores tests

This commit is contained in:
Enno Rehling 2018-02-25 20:04:55 +01:00
parent aae7e9b954
commit 43268b913b
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
cppcheck --enable=all -U_MSC_VER -UCLEANUP_CODE -UTODO \
IGNORE=$(find src -name "*.test.c" | awk '{ print "-i"$1 }')
cppcheck $IGNORE \
--quiet --enable=all -U_MSC_VER -UCLEANUP_CODE -UTODO \
-UERESSEA_BUILDNO -UERESSEA_VERSION \
-IcJSON -Isrc -Iclibs -Istorage src