mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
24 lines
903 B
Bash
Executable File
24 lines
903 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
set -e
|
|
|
|
for path in "$@"
|
|
do
|
|
INCLUDE_PATHS="$INCLUDE_PATHS -I $path"
|
|
done
|
|
|
|
cppcheck \
|
|
\
|
|
--enable=all --std=c99 --language=c \
|
|
--template='[{file}:{line}]: ({severity},{id}){message}' \
|
|
--force --error-exitcode=-1 \
|
|
\
|
|
-I include \
|
|
$INCLUDE_PATHS \
|
|
\
|
|
--suppress=missingIncludeSystem \
|
|
--suppress=unusedFunction \
|
|
--suppress=allocaCalled --suppress=obsoleteFunctionsalloca \
|
|
\
|
|
-q .
|