erenon / bazel_clang_tidy

Run clang-tidy on Bazel C++ targets directly, efficiently, with caching enabled
MIT License
96 stars 51 forks source link

Exclude external targets #47

Closed johnor closed 9 months ago

johnor commented 9 months ago

I encountered the same issue as in #46. I also included two tags to allow the exclusion of specific targets, similar to the approach taken by rust_rules.

erenon commented 9 months ago

Thanks, merged! If you want to make sure this'll work in the future, perhaps add a test (a tagged target that has something in it clang-tidy doesn't like). Either way, thanks for your time.