From 13526bb2e6e572ca4d972ca69bfca2687034bfb0 Mon Sep 17 00:00:00 2001 From: Jan Travnicek <jan.travnicek@.fit.cvut.cz> Date: Wed, 29 May 2019 10:40:43 +0200 Subject: [PATCH] filter out tests from clang-tidy --- .clang-tidy | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index edfaa58773..5fccedbce2 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -22,7 +22,7 @@ readability-*,\ -readability-else-after-return,\ " WarningsAsErrors: '*' -HeaderFilterRegex: '.*/(src|test-src)/*' +HeaderFilterRegex: '.*/(src)/*' CheckOptions: - key: modernize-use-default-member-init.UseAssignment value: '1' diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e778f1230d..f8bdf756be 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -101,7 +101,7 @@ static:cppcheck: static:clang-tidy: <<: *static_template script: - - jq ".[].file" release/compile_commands.json | tr -d "\"" | xargs -n1 -P$(grep -c processor /proc/cpuinfo) clang-tidy-9 -p release/ + - jq ".[].file" release/compile_commands.json | tr -d "\"" | grep -v "test-src" | xargs -n1 -P$(grep -c processor /proc/cpuinfo) clang-tidy-9 -p release/ # ----------------------------------------------- # build -- GitLab