From cacd8f9e50a99c26ddade519b8bf20e0cc271ff7 Mon Sep 17 00:00:00 2001 From: Roman Azarenko <roman.azarenko@iopsys.eu> Date: Fri, 18 Feb 2022 14:37:04 +0100 Subject: [PATCH] cppcheck: enable --inline-suppr by default This feature allows to add inline check suppressions, for example some_unusual_code() { // cppcheck-suppress syntaxError --- static-code-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static-code-analysis.yml b/static-code-analysis.yml index 5f7a85f..d86f3c0 100644 --- a/static-code-analysis.yml +++ b/static-code-analysis.yml @@ -1,6 +1,6 @@ variables: 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 --inline-suppr --suppress=unusedFunction --suppress=unreadVariable ." 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" COMMON_IMAGE: "iopsys/code-analysis:latest" -- GitLab