more cleanup

This commit is contained in:
silverwind 2024-04-20 02:19:59 +02:00
parent bba5be77bf
commit c162f32289
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
1 changed files with 13 additions and 32 deletions

View File

@ -100,40 +100,21 @@ issues:
max-same-issues: 0 max-same-issues: 0
exclude-dirs: [node_modules, public, web_src] exclude-dirs: [node_modules, public, web_src]
exclude-rules: exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go - path: _test\.go
linters: linters: [gocyclo, errcheck, dupl, gosec, unparam, staticcheck]
- gocyclo
- errcheck
- dupl
- gosec
- unparam
- staticcheck
- path: models/migrations/v - path: models/migrations/v
linters: linters: [gocyclo, errcheck, dupl, gosec]
- gocyclo
- errcheck
- dupl
- gosec
- path: cmd - path: cmd
linters: linters: [forbidigo]
- forbidigo - text: "webhook"
- linters: linters: [dupl]
- dupl - text: "`ID' should not be capitalized"
text: "webhook" linters: [gocritic]
- linters: - text: "swagger"
- gocritic linters: [unused, deadcode]
text: "`ID' should not be capitalized" - text: "argument x is overwritten before first use"
- linters: linters: [staticcheck]
- unused
- deadcode
text: "swagger"
- linters:
- staticcheck
text: "argument x is overwritten before first use"
- text: "commentFormatting: put a space between `//` and comment text" - text: "commentFormatting: put a space between `//` and comment text"
linters: linters: [gocritic]
- gocritic
- text: "exitAfterDefer:" - text: "exitAfterDefer:"
linters: linters: [gocritic]
- gocritic