Skip to content

Commit

Permalink
Update bzl-style.md
Browse files Browse the repository at this point in the history
Conventionally, `name` should be the first argument when defining a macro.
  • Loading branch information
RajWorking committed Jun 13, 2024
1 parent d095e2e commit 8f81c05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/en/rules/bzl-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ not instantiated by that macro), follow these best practices:
a dependency or input file that is not generated by the macro itself.
* All the targets created in the macro should be coupled in some way to the
main target.
* Conventionally, `name` should be the first argument when defining a macro.
* Keep the parameter names in the macro consistent. If a parameter is passed
as an attribute value to the main target, keep its name the same. If a macro
parameter serves the same purpose as a common rule attribute, such as
Expand Down

0 comments on commit 8f81c05

Please sign in to comment.