From 9d520f26a2d487ea4b32358f3e94d7de17955b52 Mon Sep 17 00:00:00 2001 From: Stephen Nicholas Swatman Date: Mon, 5 Aug 2024 15:27:49 +0200 Subject: [PATCH] ci: Disable clang-tidy for external dependencies (#3477) When using CMake's FetchContent mechanism, the source code for those dependencies ends up in the `build/_deps/` directory, which was previously subject to analysis by clang-tidy, which can lead to errors rooted in external projects. This commit disables clang-tidy for that directory, resolving the issue. This commit comes from #3117. Co-authored-by: Fred <92879080+fredevb@users.noreply.github.com> --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26777106bda..c8dea9ff2a2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,6 +45,7 @@ clang_tidy: clang-tidy/clang-tidy.json --exclude "*thirdparty*" --exclude "*ActsPodioEdm*" + --exclude "*build/_deps/*" # Check the combined report against the defined limits - CI/clang_tidy/check_clang_tidy.py --report clang-tidy/clang-tidy.json --config CI/clang_tidy/limits.yml