1# buildifier: disable=module-docstring 2# buildifier: disable=function-docstring 3def exercise_the_api(): 4 var1 = apple_common.platform_type # @unused 5 var2 = apple_common.AppleDynamicFramework # @unused 6 7exercise_the_api() 8 9# buildifier: disable=rule-impl-return 10def my_rule_impl(ctx): 11 _ignore = [ctx] # @unused 12 return struct() 13 14# buildifier: disable=unsorted-dict-items 15apple_related_rule = rule( 16 implementation = my_rule_impl, 17 doc = "This rule does apple-related things.", 18 attrs = { 19 "first": attr.label(mandatory = True, allow_single_file = True), 20 "second": attr.string_dict(mandatory = True), 21 "third": attr.output(mandatory = True), 22 "fourth": attr.bool(default = False, mandatory = False), 23 }, 24) 25