travis: let cppcheck check most of the repo, but suppress files/warnings that we don't care about via suppression file.

This commit is contained in:
Matthias Krüger 2014-01-09 22:46:26 +01:00
parent 73b7276ae9
commit e1a5487c70
2 changed files with 12 additions and 2 deletions

View File

@ -20,7 +20,7 @@ script:
# compile cppcheck, default build
- make -j4
- make test -j4
- ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppressions-list=.travis_suppressions cli gui lib build test -igui/test -itest/test.cxx
- ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppressions-list=.travis_suppressions .
# compile gui
- cd gui
- qmake

View File

@ -1,4 +1,14 @@
uselessAssignmentPtrArg:build/checkstl.cpp
assertWithSideEffect:build/checkuninitvar.cpp
duplicateBranch:build/checkunusedvar.cpp
duplicateBranch:lib/checkunusedvar.cpp
duplicateBranch:lib/checkunusedvar.cpp
*:gui/test*
*:test/test.cxx
*:democlient*
*:externals*
*:htdocs*
*:htmlreport*
*:samples*
*:tools*
*:win_installer*