From 9bc6835b7090d7d99d700c06f4bd9c42bdaa8857 Mon Sep 17 00:00:00 2001 From: Giovanna Lazzari Miotto <giovanna.lazzari.miotto@cern.ch> Date: Thu, 13 Mar 2025 13:42:40 +0100 Subject: [PATCH] tidy: Add own statick configuration to project Before, statick relied on a template configuration stored in the image, provided by scouting-demonstrator/scouting-docker-images --- .gitlab-ci.yml | 4 ++-- statick.yaml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 statick.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f307165c..e9b8c1d8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,7 +17,7 @@ check:quality_cppcheck: stage: check image: gitlab-registry.cern.ch/scouting-demonstrator/scouting-docker-images/scouting-devtools:1.2.2 script: - - cppcheck --xml --enable=all --suppress=missingIncludeSystem --inline-suppr --check-level=exhaustive --std=c++14 ./src 2> cppcheck_out.xml + - cppcheck --xml --enable=all --suppress=missingIncludeSystem --inline-suppr --check-level=exhaustive --std=c++17 ./src 2> cppcheck_out.xml - cppcheck-codequality --input-file cppcheck_out.xml --output-file cppcheck.json artifacts: reports: @@ -27,7 +27,7 @@ check:quality_lizard: stage: check image: gitlab-registry.cern.ch/scouting-demonstrator/scouting-docker-images/scouting-devtools:1.2.2 script: - - statick --config=/tmp/statick.yaml --level=gitlab src/ + - statick --config=/builds/scouting-demonstrator/scdaq/statick.yaml --log=DEBUG --level=gitlab src/ - sed -i 's#/builds/scouting-demonstrator/scdaq/##g' src-gitlab.code-climate.json artifacts: reports: diff --git a/statick.yaml b/statick.yaml new file mode 100644 index 00000000..57e04ba2 --- /dev/null +++ b/statick.yaml @@ -0,0 +1,9 @@ +levels: + gitlab: + reporting: + code_climate: + gitlab: "True" + files: "True" + tool: + lizard: + flags: "--verbose" -- GitLab