Skip to content

Commit

Permalink
Linting: disable troublesome lint rules
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
corhere committed Sep 4, 2024
1 parent 069e27c commit 2d468ad
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d468ad

Please sign in to comment.