Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cr_checker/cr_checker.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def copyright_checker(
remove_offset = 0,
debug = False,
use_memory_map = False,
fix = False):
fix = False,
target_compatible_with = None):
"""
Defines a custom build rule for checking and optionally fixing files for compliance
with specific requirements, such as copyright headers.
Expand Down Expand Up @@ -109,12 +110,14 @@ def copyright_checker(
args = args,
data = data,
visibility = visibility,
target_compatible_with = target_compatible_with,
)

native.alias(
name = "copyright-check",
actual = ":" + name + ".check",
visibility = visibility,
target_compatible_with = target_compatible_with,
tags = [
"cli_help=Check for license headers:\n" +
"bazel run //:copyright-check",
Expand Down
Loading