mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 19:00:44 +02:00
cppcheck with progress output
This commit is contained in:
parent
735f4c294e
commit
5f0b55164a
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user