From bc70351587e52b0759594bec76f3ea88e7bca028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Mon, 6 Feb 2017 09:54:02 +0100 Subject: [PATCH] Allow some errors in cppcheck --- CI/ci-cppcheck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CI/ci-cppcheck.sh b/CI/ci-cppcheck.sh index 3990d209..a0df41be 100755 --- a/CI/ci-cppcheck.sh +++ b/CI/ci-cppcheck.sh @@ -38,9 +38,11 @@ echo "CPPCHECK Summary" echo "==============================================================================" echo -e "${NC}" -if [ $COUNT -gt 8 ]; then +MAX_COUNT=8 + +if [ $COUNT -gt $MAX_COUNT ]; then echo -e ${WARNING} - echo "Total CPPCHECK error Count is $COUNT, which is too High! CPPCHECK Run failed"; + echo "Total CPPCHECK error Count is $COUNT, which is too High (max is $MAX_COUNT)! CPPCHECK Run failed"; echo -e "${NC}" exit 1; else