Skip to content

Commit 390406d

Browse files
author
Daniel Marjamäki
committed
suppress with symbolname
1 parent dd04e09 commit 390406d

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/selfcheck.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,18 @@ jobs:
121121
122122
- name: Self check (unusedFunction / no test / no gui)
123123
run: |
124-
supprs="--suppress=unusedFunction:lib/errorlogger.h:198 --suppress=unusedFunction:lib/importproject.cpp:1671 --suppress=unusedFunction:lib/importproject.cpp:1695"
125-
./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib -D__CPPCHECK__ -D__GNUC__ --enable=unusedFunction,information --exception-handling -rp=. --project=cmake.output.notest_nogui/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr $supprs
124+
echo '<?xml version="1.0"?>
125+
<suppressions>
126+
<suppress>
127+
<id>unusedFunction</id>
128+
<fileName>lib/errorlogger.h</fileName>
129+
<symbolName>verboseMessage</symbolName>
130+
</suppress>
131+
</suppressions>' > supprs.xml
132+
133+
cat supprs.xml
134+
135+
./cppcheck -q --template=selfcheck --error-exitcode=1 --library=cppcheck-lib -D__CPPCHECK__ -D__GNUC__ --enable=unusedFunction,information --exception-handling -rp=. --project=cmake.output.notest_nogui/compile_commands.json --suppressions-list=.selfcheck_unused_suppressions --inline-suppr --suppress-xml=supprs.xml
126136
env:
127137
DISABLE_VALUEFLOW: 1
128138
UNUSEDFUNCTION_ONLY: 1

0 commit comments

Comments
 (0)