Skip to content

Commit

Permalink
ci: Disable clang-tidy for external dependencies (#3477)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stephenswat and fredevb authored Aug 5, 2024
1 parent 0b9ed36 commit 9d520f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d520f2

Please sign in to comment.