Skip to content

Commit ac04aa3

Browse files
committed
[ci] Ignore g2clib with cppcheck
1 parent 402b250 commit ac04aa3

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
sudo apt-get -y install cppcheck
7070
sudo cpan Path::Class
7171
cppcheck --template=gcc --inline-suppr --std=c++17 --enable=style,unusedFunction -i externals \
72-
-DCPPCHECK --force --suppressions-list=cppcheck.supp \
72+
-i src/plugins/weatherdata/gfs/g2clib -DCPPCHECK --force --suppressions-list=cppcheck.supp \
7373
--library=qt.cfg --library=posix.cfg . 2> >(tee error.log >&2)
7474
perl scripts/warnings.pl error.log
7575

cppcheck.supp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ useStlAlgorithm
1818
// Internal errors
1919
cppcheckError
2020

21-
// g2clib
22-
variableScope:src/plugins/weatherdata/gfs/g2clib/*.c
23-
knownConditionTrueFalse:src/plugins/weatherdata/gfs/g2clib/*.c
24-
redundantAssignment:src/plugins/weatherdata/gfs/g2clib/*.c
25-
unreadVariable:src/plugins/weatherdata/gfs/g2clib/*.c
26-
invalidFunctionArg:src/plugins/weatherdata/gfs/g2clib/*.c
27-
2821
// Ignore unusedFunction as it has too many false positives (especially in tests)
2922
unusedFunction
3023

0 commit comments

Comments
 (0)