Travis: Improved Cppcheck self check
This commit is contained in:
parent
61a259597b
commit
181991204a
|
@ -219,7 +219,7 @@ script:
|
||||||
# building gui generates some more files that cppcheck can check, so check the repo *after* building gui
|
# building gui generates some more files that cppcheck can check, so check the repo *after* building gui
|
||||||
- cd ../
|
- cd ../
|
||||||
# self check
|
# 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
|
# 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
|
- ${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
|
# check naming conventions
|
||||||
|
|
|
@ -4,11 +4,19 @@ redundantNextPrevious:test/testtoken.cpp
|
||||||
simplePatternError:test/testtoken.cpp
|
simplePatternError:test/testtoken.cpp
|
||||||
noValidConfiguration
|
noValidConfiguration
|
||||||
shadowFunction
|
shadowFunction
|
||||||
|
functionConst
|
||||||
|
functionStatic
|
||||||
|
|
||||||
# temporary suppressions - fix the warnings!
|
# temporary suppressions - fix the warnings!
|
||||||
|
duplicateBranch:lib/checkunusedvar.cpp
|
||||||
|
duplicateBranch:lib/tokenize.cpp
|
||||||
missingOverride
|
missingOverride
|
||||||
shiftTooManyBitsSigned
|
redundantAssignment:lib/tokenlist.cpp
|
||||||
unusedPrivateFunction
|
unreachableCode:lib/checkbufferoverrun.cpp
|
||||||
|
unreachableCode:lib/checkclass.cpp
|
||||||
|
unreachableCode:test/testother.cpp
|
||||||
|
unusedPrivateFunction:lib/checkbufferoverrun.h
|
||||||
|
unusedPrivateFunction:test/test*.cpp
|
||||||
useStlAlgorithm
|
useStlAlgorithm
|
||||||
|
|
||||||
*:gui/test/*
|
*:gui/test/*
|
||||||
|
@ -19,3 +27,4 @@ useStlAlgorithm
|
||||||
*:externals/*/*
|
*:externals/*/*
|
||||||
*:htmlreport/*
|
*:htmlreport/*
|
||||||
*:samples/*/bad.c*
|
*:samples/*/bad.c*
|
||||||
|
*:samples/redundantAssignment/data.c
|
||||||
|
|
Loading…
Reference in New Issue