Make clang-tidy check more aggressive
authorPaul Bauer <paul.bauer.q@gmail.com>
Fri, 7 May 2021 15:03:42 +0000 (17:03 +0200)
committerArtem Zhmurov <zhmurov@gmail.com>
Mon, 10 May 2021 11:30:31 +0000 (11:30 +0000)
Now makes sure that it checks on all warnings, not just files that could
be fixed automatically.

admin/gitlab-ci/lint.gitlab-ci.yml

index 51813fee1a848a58e0762a436e1caa6b7c005322..cd6d6843adbba00bf6f9852e1d2a0a2da3351d4b 100644 (file)
@@ -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