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:
Cory Snider 2024-09-04 16:18:54 -04:00
parent 069e27c180
commit 2d468ad289
1 changed files with 5 additions and 6 deletions

View File

@ -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