[CI] Add helper script to cppcheck single path

This commit is contained in:
jgromes 2025-01-31 18:25:38 +01:00
parent b634c9c711
commit 8ab989ab53

18
extras/cppcheck/check_file.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
if [[ $@ -lt 1 ]]; then
echo "Usage: $0 <path to check>"
exit 1
fi
path=$1
cppcheck --version
cppcheck $path --enable=all \
--force \
--inline-suppr \
--suppress=ConfigurationNotChecked \
--suppress=unusedFunction \
--suppress=missingIncludeSystem \
--suppress=missingInclude \
--quiet