docs: Clarify that custom linters are not enabled by default (#3506)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
3a1f50d18c
commit
50901e40ae
@ -64,10 +64,9 @@ linters-settings:
|
|||||||
original-url: github.com/golangci/example-linter
|
original-url: github.com/golangci/example-linter
|
||||||
```
|
```
|
||||||
|
|
||||||
That is all the configuration that is required to run a custom linter in your project. Custom linters are enabled by default,
|
That is all the configuration that is required to run a custom linter in your project.
|
||||||
but abide by the same rules as other linters. If the disable all option is specified either on command line or in
|
Custom linters are disabled by default, and are not enabled when `linters.enable-all` is specified.
|
||||||
`.golangci.yml` files `linters:disable-all: true`, custom linters will be disabled; they can be re-enabled by adding them
|
They can be enabled by adding them the `linters.enable` list, or providing the enabled option on the command line (`golangci-lint run -Eexample`).
|
||||||
to the `linters:enable` list, or providing the enabled option on the command line, `golangci-lint run -Eexample`.
|
|
||||||
|
|
||||||
### Create a Plugin
|
### Create a Plugin
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user