Skip to content

Commit 7bc031e

Browse files
committed
Only run clang-tidy on safe and prod targets
1 parent 2b6fa25 commit 7bc031e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang_tidy/clang_tidy.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _clang_tidy_aspect_impl(target, ctx):
147147
return []
148148

149149
tags = getattr(ctx.rule.attr, "tags", [])
150-
if not LIBRARY in tags and not BINARY in tags:
150+
if not "safe" in tags and not "prod" in tags:
151151
return []
152152

153153
srcs = get_cc_srcs(ctx)

0 commit comments

Comments
 (0)