mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
[ci] Ignore g2clib with cppcheck
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user