[CI] Add helper script to cppcheck single path
This commit is contained in:
parent
b634c9c711
commit
8ab989ab53
1 changed files with 18 additions and 0 deletions
18
extras/cppcheck/check_file.sh
Executable file
18
extras/cppcheck/check_file.sh
Executable 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
|
Loading…
Add table
Reference in a new issue