chore: Updating linter, fixing some new warnings (#88863)

This commit is contained in:
Dave Henderson
2024-06-06 13:01:27 -04:00
committed by GitHub
parent c9778c3332
commit e21d357d67
13 changed files with 106 additions and 923 deletions

View File

@@ -1,5 +1,6 @@
[run]
timeout = "10m"
concurrency = 10
[linters-settings.exhaustive]
default-signifies-exhaustive = true
@@ -120,6 +121,9 @@ enabled-checks = ["ruleguard"]
[linters-settings.gocritic.settings.ruleguard]
rules = "pkg/ruleguard.rules.go"
[linters-settings.misspell]
ignore-words = ["Unknwon", "Creater"]
[linters-settings.nakedret]
max-func-lines = 60
@@ -162,6 +166,7 @@ enable = [
[issues]
exclude-use-default = false
max-same-issues = 0
# Enable when appropriate
# Poorly chosen identifier
@@ -234,10 +239,6 @@ text = "501"
linters = ["gosec"]
text = "404"
[[issues.exclude-rules]]
linters = ["misspell"]
text = "Unknwon` is a misspelling of `Unknown"
[[issues.exclude-rules]]
linters = ["errorlint"]
text = "non-wrapping format verb for fmt.Errorf"