Skip to content

Commit

Permalink
doc: fix go_naming_convention default [skip ci] (#891)
Browse files Browse the repository at this point in the history
For #890
  • Loading branch information
Jay Conrod authored Aug 31, 2020
1 parent e5b2250 commit b5fdf52
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,9 @@ The following directives are recognized:
| ``@io_bazel_rules_go//proto:gofast_grpc`` and |
| ``@io_bazel_rules_go//proto:gogofaster_grpc``. |
+---------------------------------------------------+----------------------------------------+
| :direc:`# gazelle:go_naming_convention` | n/a |
| :direc:`# gazelle:go_naming_convention` | inferred automatically |
+---------------------------------------------------+----------------------------------------+
| Controls the names of generated Go targets. By default, library targets are named |
| ``go_default_library`` and test targets ``go_default_test``. |
| Controls the names of generated Go targets. |
| |
| Valid values are: |
| |
Expand All @@ -606,6 +605,10 @@ The following directives are recognized:
| ``foobin_test``. |
| * ``import_alias``: Same as ``import``, but an ``alias`` target is generated named |
| ``go_default_library`` to ensure backwards compatibility. |
| |
| If no naming convention is set, Gazelle attempts to infer the convention in |
| use by reading the root build file and build files in immediate |
| subdirectories. If no Go targets are found, Gazelle defaults to ``import``. |
+---------------------------------------------------+----------------------------------------+
| :direc:`# gazelle:go_naming_convention_external` | n/a |
+---------------------------------------------------+----------------------------------------+
Expand Down

0 comments on commit b5fdf52

Please sign in to comment.