docs: improve linters page (#2617)
This commit is contained in:
parent
56d77e2bc3
commit
1bf82059f1
@ -1033,16 +1033,29 @@ linters-settings:
|
|||||||
|
|
||||||
revive:
|
revive:
|
||||||
# Maximum number of open files at the same time.
|
# Maximum number of open files at the same time.
|
||||||
# https://github.com/mgechev/revive#command-line-flags
|
# See https://github.com/mgechev/revive#command-line-flags
|
||||||
# Defaults to unlimited.
|
# Defaults to unlimited.
|
||||||
max-open-files: 2048
|
max-open-files: 2048
|
||||||
|
|
||||||
|
# When set to false, ignores files with "GENERATED" header, similar to golint.
|
||||||
# See https://github.com/mgechev/revive#available-rules for details.
|
# See https://github.com/mgechev/revive#available-rules for details.
|
||||||
|
# Default: false
|
||||||
ignore-generated-header: true
|
ignore-generated-header: true
|
||||||
severity: warning
|
|
||||||
enable-all-rules: false
|
# Sets the default severity.
|
||||||
# confidence: 0.8
|
# See https://github.com/mgechev/revive#configuration
|
||||||
# error-code: 0
|
# Default: warning
|
||||||
# warning-code: 0
|
severity: error
|
||||||
|
|
||||||
|
# Enable all available rules.
|
||||||
|
# Default: false
|
||||||
|
enable-all-rules: true
|
||||||
|
|
||||||
|
# Sets the default failure confidence.
|
||||||
|
# This means that linting errors with less than 0.8 confidence will be ignored.
|
||||||
|
# Default: 0.8
|
||||||
|
confidence: 0.1
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#add-constant
|
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#add-constant
|
||||||
- name: add-constant
|
- name: add-constant
|
||||||
|
@ -8,11 +8,11 @@ To see a list of supported linters and which linters are enabled/disabled:
|
|||||||
golangci-lint help linters
|
golangci-lint help linters
|
||||||
```
|
```
|
||||||
|
|
||||||
## Enabled By Default Linters
|
## Enabled by Default
|
||||||
|
|
||||||
{.EnabledByDefaultLinters}
|
{.EnabledByDefaultLinters}
|
||||||
|
|
||||||
## Disabled By Default Linters (`-E/--enable`)
|
## Disabled by Default
|
||||||
|
|
||||||
{.DisabledByDefaultLinters}
|
{.DisabledByDefaultLinters}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user