[epiphany/mcatanzaro/cppcheck-suppressions] Suppress various cppcheck warnings
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/cppcheck-suppressions] Suppress various cppcheck warnings
- Date: Sun, 17 Nov 2019 17:18:58 +0000 (UTC)
commit 763bafe5d4904b1d17821307697ad4ab28beb875
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Nov 17 11:14:34 2019 -0600
Suppress various cppcheck warnings
cppcheck is throwing lots of plainly-incorrect false-positive warnings
for these issues. Sadly, some of these are important warnings, but they
are just not useful due to all the false positives, so we should
suppress them.
Hopefully clang's scan-build would be better at avoiding
false-positives.
.gitlab-ci.yml | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 476b592b4..60e388624 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,8 +19,23 @@ cppcheck:
allow_failure: true
before_script:
- apk update && apk add cppcheck
- script:
- - cppcheck --enable=all --suppress=variableScope --suppress=unusedFunction --force -q .
--error-exitcode=1 --library=gtk
+ script: >-
+ cppcheck .
+ --error-exitcode=1
+ --library=gtk
+ --quiet
+ --suppress=constArgument
+ --suppress=ctunullpointer
+ --suppress=deallocret
+ --suppress=leakNoVarFunctionCall
+ --suppress=memleak
+ --suppress=nullPointer
+ --suppress=variableScope
+ --suppress=unusedFunction
+ --suppress=varFuncNullUB
+ --suppress=*:lib/contrib/gvdb/*
+ --suppress=*:subprojects/*
+ --template=gcc
variables:
BUNDLE: 'epiphany-git.flatpak'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]