Skip to content
Snippets Groups Projects
Commit 6fb5611c authored by Maxim Menshikov's avatar Maxim Menshikov
Browse files

static-code-analysis/cppcheck: suppress unmatched suppressions

The cppcheck invocation without suppression of unmatched suppressions
expects that there would be at least one error of suppressed kind. If there
are none, cppcheck fails as well.
This patch enables ignoring errors of that kind.

Signed-off-by: default avatarMaxim Menshikov <maxim.menshikov@iopsys.eu>
parent 444c9b90
No related branches found
No related tags found
1 merge request!12static-code-analysis/cppcheck: suppress unmatched suppressions
variables: variables:
RUN_FLAWFINDER: "flawfinder --falsepositive -m 4" RUN_FLAWFINDER: "flawfinder --falsepositive -m 4"
RUN_CPPCHECK: "cppcheck --enable=all --error-exitcode=1 --suppress=unusedFunction --suppress=unreadVariable ." RUN_CPPCHECK: "cppcheck --enable=all --error-exitcode=1 --suppress=unusedFunction --suppress=unreadVariable --suppress=unmatchedSuppression ."
RUN_CPD: "/home/user/pmd-bin-6.19.0/bin/run.sh cpd --minimum-tokens 200 --language c --exclude ./test/cmocka --files" RUN_CPD: "/home/user/pmd-bin-6.19.0/bin/run.sh cpd --minimum-tokens 200 --language c --exclude ./test/cmocka --files"
SOURCE_FOLDER: "src" SOURCE_FOLDER: "src"
COMMON_IMAGE: "iopsys/code-analysis:0.27" COMMON_IMAGE: "iopsys/code-analysis:0.27"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment