[gjs: 2/3] CI: Activate GNOME-specific rules in cppcheck
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 2/3] CI: Activate GNOME-specific rules in cppcheck
- Date: Sun, 22 Nov 2020 23:09:24 +0000 (UTC)
commit 4c02d479cca0d61656d371bd69bc6b3bf1932c5d
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Nov 22 12:43:43 2020 -0800
CI: Activate GNOME-specific rules in cppcheck
Cppcheck ships a "library file" for the GNOME platform, enabling some
extra checks when using GLib and GTK APIs.
.gitlab-ci.yml | 2 +-
tools/run_cppcheck.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df6c66d0..8bfc43f8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -136,7 +136,7 @@ cppcheck:
image: uilianries/docker-cppcheck
stage: source_check
script:
- - cppcheck . -v -f -q --error-exitcode=1 --inline-suppr --enable=warning,performance,portability
+ - cppcheck . -v -f -q --error-exitcode=1 --inline-suppr --library=gtk
--enable=warning,performance,portability
except:
refs:
- schedules
diff --git a/tools/run_cppcheck.sh b/tools/run_cppcheck.sh
index aa17293e..ab2671d7 100755
--- a/tools/run_cppcheck.sh
+++ b/tools/run_cppcheck.sh
@@ -4,4 +4,4 @@
ninja -C _build
cppcheck --project=_build/compile_commands.json --inline-suppr \
--enable=warning,performance,portability,missingInclude \
- --force --quiet $@
+ --library=gtk --force --quiet $@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]