From 6fb5611c4712edab673a67a2d50638d5520d18b2 Mon Sep 17 00:00:00 2001
From: Maxim Menshikov <maxim.menshikov@iopsys.eu>
Date: Fri, 2 Sep 2022 21:00:34 +0300
Subject: [PATCH] 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: Maxim Menshikov <maxim.menshikov@iopsys.eu>
---
 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 e03808a..0f59089 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 --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"
   SOURCE_FOLDER: "src"
   COMMON_IMAGE: "iopsys/code-analysis:0.27"
-- 
GitLab