1# buildifier: disable=module-docstring 2def my_rule_impl(ctx): 3 _ignore = [ctx] # @unused 4 return [] 5 6# buildifier: disable=unsorted-dict-items 7rule( 8 implementation = my_rule_impl, 9 attrs = { 10 "first": attr.label(mandatory = True, allow_single_file = True), 11 "second": attr.string_dict(mandatory = True), 12 "third": attr.output(mandatory = True), 13 "fourth": attr.bool(default = False, mandatory = False), 14 }, 15) 16