mirror of https://github.com/docker/cli.git
Linting: disable troublesome lint rules
Unused named function parameters and shadowed variables are trivial code quality issues which are not worth addressing on a long-term maintenance branch without much activity aside from backports. Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
parent
069e27c180
commit
2d468ad289
|
@ -36,17 +36,16 @@ linters-settings:
|
|||
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
|
||||
gocyclo:
|
||||
min-complexity: 16
|
||||
govet:
|
||||
enable:
|
||||
- shadow
|
||||
settings:
|
||||
shadow:
|
||||
strict: true
|
||||
lll:
|
||||
line-length: 200
|
||||
nakedret:
|
||||
command: nakedret
|
||||
pattern: ^(?P<path>.*?\\.go):(?P<line>\\d+)\\s*(?P<message>.*)$
|
||||
revive:
|
||||
rules:
|
||||
- name: unused-parameter
|
||||
severity: warning
|
||||
disabled: true
|
||||
|
||||
issues:
|
||||
# The default exclusion rules are a bit too permissive, so copying the relevant ones below
|
||||
|
|
Loading…
Reference in New Issue