mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 19:10:49 +02:00
cppcheck with progress output
This commit is contained in:
parent
735f4c294e
commit
5f0b55164a
@ -13,10 +13,13 @@ check_dir=$SRCDIR/../src
|
||||
|
||||
main() {
|
||||
FAIL=0;
|
||||
RESULT=$(cppcheck $check_dir --quiet --suppress=missingIncludeSystem --suppress=unusedFunction --enable=all -i $exclude_dir 2>&1)
|
||||
|
||||
if [ ! -z "$RESULT" ]; then
|
||||
echo "$RESULT"
|
||||
{ ERROR="$( { cppcheck $check_dir --suppress=missingIncludeSystem --suppress=unusedFunctionf --enable=all -i $exclude_dir; } 2>&1 1>&3 3>&- )"; } 3>&1;
|
||||
|
||||
if [ ! -z "$ERROR" ]; then
|
||||
echo "----------------------------------"
|
||||
echo "$ERROR"
|
||||
echo "----------------------------------"
|
||||
fail "Cppcheck finished with error"
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user