Skip to content

Commit

Permalink
ci: Disable clang-tidy for external dependencies
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.

Co-authored-by: Stephen Nicholas Swatman <[email protected]>
  • Loading branch information
fredevb and stephenswat committed Aug 5, 2024
1 parent 0b9ed36 commit e8b5cba
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 e8b5cba

Please sign in to comment.