mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-19 18:32:11 -04:00
fix: include custom linters in enable-all
(#3911)
This commit is contained in:
parent
d147d8bf4f
commit
6c7aba67ec
4 changed files with 32 additions and 26 deletions
docs/src/docs/contributing
|
@ -83,8 +83,11 @@ If you're looking for instructions on how to configure your own custom linter, t
|
|||
|
||||
That is all the configuration that is required to run a custom linter in your project.
|
||||
|
||||
Custom linters are disabled by default, and are not enabled when `linters.enable-all` is specified.
|
||||
They can be enabled by adding them the `linters.enable` list, or providing the enabled option on the command line (`golangci-lint run -Eexample`).
|
||||
Custom linters are enabled by default, but abide by the same rules as other linters.
|
||||
|
||||
If the disable all option is specified either on command line or in `.golang.yml` files `linters.disable-all: true`, custom linters will be disabled;
|
||||
they can be re-enabled by adding them to the `linters:enable` list,
|
||||
or providing the enabled option on the command line, `golangci-lint run -Eexample`.
|
||||
|
||||
The configuration inside the `settings` field of linter have some limitations (there are NOT related to the plugin system itself):
|
||||
we use Viper to handle the configuration but Viper put all the keys in lowercase, and `.` cannot be used inside a key.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue