[CI] Suppress missing includes in cppcheck
This commit is contained in:
parent
d3d16433bf
commit
d23983bc1f
1 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,14 @@
|
|||
|
||||
file=cppcheck.txt
|
||||
cppcheck --version
|
||||
cppcheck src --enable=all --force --inline-suppr --suppress=ConfigurationNotChecked --suppress=unusedFunction --quiet >> $file 2>&1
|
||||
cppcheck src --enable=all \
|
||||
--force \
|
||||
--inline-suppr \
|
||||
--suppress=ConfigurationNotChecked \
|
||||
--suppress=unusedFunction \
|
||||
--suppress=missingIncludeSystem \
|
||||
--suppress=missingInclude \
|
||||
--quiet >> $file 2>&1
|
||||
echo "Cppcheck finished with exit code $?"
|
||||
|
||||
error=$(grep ": error:" $file | wc -l)
|
||||
|
|
Loading…
Add table
Reference in a new issue