From 2ae68cd12025f86f27fedf178dcf77f9002c3922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 3 Oct 2019 14:02:08 +0200 Subject: [PATCH] Use util/suppressions.txt for Cppcheck suppressions list --- .gitlab-ci.yml | 4 +++- util/suppressions.txt | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 util/suppressions.txt diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30f1243612..c4659978a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -228,7 +228,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 index 0000000000..cc0aa26b53 --- /dev/null +++ b/util/suppressions.txt @@ -0,0 +1,5 @@ +unmatchedSuppression:* +preprocessorErrorDirective:* +invalidPrintfArgType_uint:bin/dig/dig.c +invalidPrintfArgType_sint:lib/isc/buffer.c +invalidPrintfArgType_uint:lib/isc/tests/crc64_test.c