mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-30 20:47:31 +02:00
Update golangci settings
Entire-Checkpoint: b9544ef2c54f
This commit is contained in:
@@ -5,7 +5,7 @@ run:
|
|||||||
|
|
||||||
formatters:
|
formatters:
|
||||||
enable:
|
enable:
|
||||||
- gofumpt # gofumpt formatter
|
- gofumpt # gofumpt formatter
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
gofumpt:
|
gofumpt:
|
||||||
@@ -13,12 +13,16 @@ formatters:
|
|||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- staticcheck # staticcheck = true
|
- staticcheck # staticcheck = true
|
||||||
- unparam # unusedparams = true
|
- unparam # unusedparams = true
|
||||||
- nilnil # nilness = true (catches nil returns of nil interface values)
|
- nilnil # nilness = true (catches nil returns of nil interface values)
|
||||||
- govet # base vet; nilness + unusedwrite via govet analyzers
|
- govet # base vet; nilness + unusedwrite via govet analyzers
|
||||||
|
- stylecheck # naming conventions (ST1003: acronyms, camelCase)
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
|
stylecheck:
|
||||||
|
checks: ["ST1003"]
|
||||||
|
|
||||||
govet:
|
govet:
|
||||||
enable:
|
enable:
|
||||||
- nilness
|
- nilness
|
||||||
@@ -30,7 +34,6 @@ exclusions:
|
|||||||
- .vscode
|
- .vscode
|
||||||
- .idea
|
- .idea
|
||||||
- node_modules
|
- node_modules
|
||||||
rules:
|
- internal/graph/generated # gqlgen generated code
|
||||||
- path: _test\.go
|
- internal/api/docs\.go # swaggo generated code
|
||||||
linters:
|
- _test\.go # test files excluded from all linters
|
||||||
- unparam
|
|
||||||
|
|||||||
Reference in New Issue
Block a user