Travis: Fix the cppcheck self-check
This commit is contained in:
parent
37656cdca1
commit
b0baf4f65b
|
@ -218,12 +218,12 @@ script:
|
|||
- make -s -j2
|
||||
# building gui generates some more files that cppcheck can check, so check the repo *after* building gui
|
||||
- cd ../
|
||||
# use same hack as for clang to work around cppchecks broken exit status with -j 2 ; create file, tee everything to the file and stdout, grep for errors in the file
|
||||
# self check
|
||||
- touch /tmp/cppcheck.cppcheck
|
||||
- ${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/synthetic -iaddons -igui . -j 2 |& tee /tmp/cppcheck.cppcheck
|
||||
- ${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 |& tee /tmp/cppcheck.cppcheck
|
||||
# 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 |& tee --append /tmp/cppcheck.cppcheck
|
||||
- sh -c "! grep '^\[' /tmp/cppcheck.cppcheck"
|
||||
- sh -c "! grep '\]$' /tmp/cppcheck.cppcheck"
|
||||
# check naming conventions
|
||||
- ${CPPCHECK} -i gui/test -j 2 --dump -q gui lib
|
||||
- find lib gui -maxdepth 1 -name "*.dump" | xargs -n 1 -P 4 python addons/naming.py --private-member-variable='m[A-Z].*'
|
||||
|
|
|
@ -3,11 +3,16 @@ unusedPrivateFunction:test/testcmdlineparser.cpp
|
|||
redundantNextPrevious:test/testtoken.cpp
|
||||
simplePatternError:test/testtoken.cpp
|
||||
noValidConfiguration
|
||||
useStlAlgorithm
|
||||
shadowFunction
|
||||
|
||||
# temporarily suppress missingOverride
|
||||
# temporary suppressions - fix the warnings!
|
||||
missingOverride
|
||||
shadowVar
|
||||
shiftTooManyBitsSigned
|
||||
uninitStructMember
|
||||
unsignedLessThanZero
|
||||
unusedPrivateFunction
|
||||
useStlAlgorithm
|
||||
|
||||
*:gui/test/*
|
||||
*:test/test.cxx
|
||||
|
|
Loading…
Reference in New Issue