From b14cf5fce4b9e2fb4735aec33fe66b2bc377044f Mon Sep 17 00:00:00 2001 From: Paul Bauer Date: Fri, 7 May 2021 17:03:42 +0200 Subject: [PATCH] Make clang-tidy check more aggressive Now makes sure that it checks on all warnings, not just files that could be fixed automatically. --- admin/gitlab-ci/lint.gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/gitlab-ci/lint.gitlab-ci.yml b/admin/gitlab-ci/lint.gitlab-ci.yml index 51813fee1a..cd6d6843ad 100644 --- a/admin/gitlab-ci/lint.gitlab-ci.yml +++ b/admin/gitlab-ci/lint.gitlab-ci.yml @@ -67,7 +67,7 @@ clang-tidy:test: - echo "Revision used for branch point is $REV" - git show -s $REV - RUN_CLANG_TIDY=run-clang-tidy-$COMPILER_MAJOR_VERSION bash admin/clang-tidy.sh check --parallel=$KUBERNETES_CPU_LIMIT --warnings=clang-tidy.log --rev=$REV -B=$BUILD_DIR - - grep -i "found code issues" clang-tidy.log | tee code-lint.txt || true + - grep -i "found code issues|warnings" clang-tidy.log | tee code-lint.txt || true - if [ -s code-lint.txt ] ; then echo "clang-tidy.sh found issues"; exit 1; fi artifacts: when: on_failure -- 2.22.0