12 lines
366 B
Bash
Executable file
12 lines
366 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
if ! command -v cppcheck &>/dev/null; then
|
|
echo "cppcheck not installed; skipping"
|
|
exit 0
|
|
fi
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cppcheck --enable=all --suppress=missingIncludeSystem \
|
|
--suppress=unmatchedSuppression \
|
|
--inline-suppr \
|
|
-I "$REPO_ROOT/include" \
|
|
"$REPO_ROOT/src"
|