[epiphany/mcatanzaro/cppcheck-suppressions] Suppress various cppcheck warnings



commit 46d80dd1f3cbe941f89d0cc5aa2f1d3deacd0629
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 | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 476b592b4..8df467f3c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,8 +19,24 @@ 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 .
+    --enable=all
+    --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]