]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use util/suppressions.txt for Cppcheck suppressions list
authorOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 12:02:08 +0000 (14:02 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 13:28:38 +0000 (15:28 +0200)
.gitlab-ci.yml
util/suppressions.txt [new file with mode: 0644]

index c985152e39463f9f1b5bb69ab699a246882eafb1..d5e7d205c02fd13861cf8731c008eed2c381af26 100644 (file)
@@ -235,7 +235,9 @@ stages:
            -j ${TEST_PARALLEL_JOBS:-1} \
            --xml \
            --output-file=cppcheck.results \
-           --inline-suppr
+           --relative-paths="$CI_PROJECT_DIR" \
+           --inline-suppr \
+           --suppressions-list=util/suppressions.txt
 
 .cppcheck_report: &cppcheck_report_html |
   cppcheck-htmlreport --title="BIND 9 ($CI_COMMIT_SHORT_SHA) Cppcheck Report" \
diff --git a/util/suppressions.txt b/util/suppressions.txt
new file mode 100644 (file)
index 0000000..dbfa38b
--- /dev/null
@@ -0,0 +1,2 @@
+unmatchedSuppression:*
+preprocessorErrorDirective:*