You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,7 @@ Parameter Descriptions
125
125
|`filename`| :fontawesome-solid-check: |`#!yaml "mocks_test.go"`| The name of the file the mock will reside in. |
126
126
|`force-file-write`| :fontawesome-solid-x: |`#!yaml true`| When set to `#!yaml force-file-write: true`, mockery will forcibly overwrite any existing files. Otherwise, it will fail if the output file already exists. |
127
127
|`formatter`| :fontawesome-solid-x: |`#!yaml "goimports"`| The formatter to use on the rendered template. Choices are: `gofmt`, `goimports`, `noop`. |
128
+
|`formatter-options`| :fontawesome-solid-x: |`#!yaml nil`| Additional options for the formatter. Currently supports `goimports.local-prefix` which will set the corresponding option when running goimports. |
128
129
|`generate`| :fontawesome-solid-x: |`#!yaml true`| Can be used to selectively enable/disable generation of specific interfaces. See [the related docs](generate-directive.md) for more details. |
129
130
|[`include-auto-generated`](include-auto-generated.md){ data-preview } | :fontawesome-solid-x: |`#!yaml false`| When set to `true`, mockery will parse files that are auto-generated. This can only be specified in the top-level config or package-level config. |
130
131
|`include-interface-regex`| :fontawesome-solid-x: |`#!yaml ""`| When set, only interface names that match the expression will be generated. This setting is ignored if `all: True` is specified in the configuration. To further refine the interfaces generated, use `exclude-interface-regex`. |
0 commit comments