| rule_info { |
| rule_name: "my_rule" |
| doc_string: "This is my rule. It does stuff." |
| attribute { |
| name: "name" |
| doc_string: "A unique name for this target." |
| type: NAME |
| mandatory: true |
| } |
| attribute { |
| name: "first" |
| doc_string: "first my_rule doc string" |
| type: LABEL |
| mandatory: true |
| } |
| attribute { |
| name: "second" |
| type: STRING_DICT |
| mandatory: true |
| } |
| } |
| rule_info { |
| rule_name: "other_rule" |
| doc_string: "This is another rule." |
| attribute { |
| name: "name" |
| doc_string: "A unique name for this target." |
| type: NAME |
| mandatory: true |
| } |
| attribute { |
| name: "fourth" |
| type: STRING_DICT |
| mandatory: true |
| } |
| attribute { |
| name: "third" |
| doc_string: "third other_rule doc string" |
| type: LABEL |
| mandatory: true |
| } |
| } |
| rule_info { |
| rule_name: "yet_another_rule" |
| doc_string: "This is yet another rule" |
| attribute { |
| name: "name" |
| doc_string: "A unique name for this target." |
| type: NAME |
| mandatory: true |
| } |
| attribute { |
| name: "fifth" |
| type: LABEL |
| mandatory: true |
| } |
| } |
| func_info { |
| function_name: "top_fun" |
| parameter { |
| name: "a" |
| mandatory: true |
| } |
| parameter { |
| name: "b" |
| mandatory: true |
| } |
| parameter { |
| name: "c" |
| mandatory: true |
| } |
| } |
| module_docstring: "A direct dependency file of the input file." |