Travis: Improved Cppcheck self check

This commit is contained in:
Daniel Marjamäki 2019-06-15 14:34:46 +02:00
parent 61a259597b
commit 181991204a
2 changed files with 12 additions and 3 deletions

View File

@ -219,7 +219,7 @@ script:
# building gui generates some more files that cppcheck can check, so check the repo *after* building gui
- cd ../
# self check
- ${CPPCHECK} --template=gcc -D__CPPCHECK__ -f --error-exitcode=1 --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --enable=style,performance,portability,warning,internal --exception-handling --inline-suppr --suppressions-list=.travis_suppressions -itest/cli -itest/synthetic -itest/testsuites -iaddons -igui . -j 2
- ${CPPCHECK} --template=gcc -D__CPPCHECK__ -f --error-exitcode=1 --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --inconclusive --enable=style,performance,portability,warning,internal --exception-handling --inline-suppr --suppressions-list=.travis_suppressions -itest/cli -itest/synthetic -itest/testsuites -iaddons -igui . -j 2
# check gui with qt settings
- ${CPPCHECK} --template=gcc --library=qt --error-exitcode=1 -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --enable=style,performance,portability,warning,internal --exception-handling -j 2 gui --suppressions-list=.travis_suppressions -igui/test
# check naming conventions

View File

@ -4,11 +4,19 @@ redundantNextPrevious:test/testtoken.cpp
simplePatternError:test/testtoken.cpp
noValidConfiguration
shadowFunction
functionConst
functionStatic
# temporary suppressions - fix the warnings!
duplicateBranch:lib/checkunusedvar.cpp
duplicateBranch:lib/tokenize.cpp
missingOverride
shiftTooManyBitsSigned
unusedPrivateFunction
redundantAssignment:lib/tokenlist.cpp
unreachableCode:lib/checkbufferoverrun.cpp
unreachableCode:lib/checkclass.cpp
unreachableCode:test/testother.cpp
unusedPrivateFunction:lib/checkbufferoverrun.h
unusedPrivateFunction:test/test*.cpp
useStlAlgorithm
*:gui/test/*
@ -19,3 +27,4 @@ useStlAlgorithm
*:externals/*/*
*:htmlreport/*
*:samples/*/bad.c*
*:samples/redundantAssignment/data.c