cppcheck with progress output

This commit is contained in:
Filip Bucek 2019-11-05 14:40:50 +01:00
parent 735f4c294e
commit 5f0b55164a

View File

@ -13,10 +13,13 @@ check_dir=$SRCDIR/../src
main() { main() {
FAIL=0; FAIL=0;
RESULT=$(cppcheck $check_dir --quiet --suppress=missingIncludeSystem --suppress=unusedFunction --enable=all -i $exclude_dir 2>&1)
if [ ! -z "$RESULT" ]; then { ERROR="$( { cppcheck $check_dir --suppress=missingIncludeSystem --suppress=unusedFunctionf --enable=all -i $exclude_dir; } 2>&1 1>&3 3>&- )"; } 3>&1;
echo "$RESULT"
if [ ! -z "$ERROR" ]; then
echo "----------------------------------"
echo "$ERROR"
echo "----------------------------------"
fail "Cppcheck finished with error" fail "Cppcheck finished with error"
fi fi
} }