Skip to content

Commit

Permalink
[ci] Ignore g2clib with cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ltoenning committed Apr 18, 2023
1 parent 402b250 commit ac04aa3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
sudo apt-get -y install cppcheck
sudo cpan Path::Class
cppcheck --template=gcc --inline-suppr --std=c++17 --enable=style,unusedFunction -i externals \
-DCPPCHECK --force --suppressions-list=cppcheck.supp \
-i src/plugins/weatherdata/gfs/g2clib -DCPPCHECK --force --suppressions-list=cppcheck.supp \
--library=qt.cfg --library=posix.cfg . 2> >(tee error.log >&2)
perl scripts/warnings.pl error.log
Expand Down
7 changes: 0 additions & 7 deletions cppcheck.supp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ useStlAlgorithm
// Internal errors
cppcheckError

// g2clib
variableScope:src/plugins/weatherdata/gfs/g2clib/*.c
knownConditionTrueFalse:src/plugins/weatherdata/gfs/g2clib/*.c
redundantAssignment:src/plugins/weatherdata/gfs/g2clib/*.c
unreadVariable:src/plugins/weatherdata/gfs/g2clib/*.c
invalidFunctionArg:src/plugins/weatherdata/gfs/g2clib/*.c

// Ignore unusedFunction as it has too many false positives (especially in tests)
unusedFunction

Expand Down

0 comments on commit ac04aa3

Please sign in to comment.