mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-30 20:47:31 +02:00
Fix golangci config
Entire-Checkpoint: 1a908bd95cfa
This commit is contained in:
@@ -1,30 +1,36 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
|
|
||||||
|
formatters:
|
||||||
|
enable:
|
||||||
|
- gofumpt # gofumpt formatter
|
||||||
|
|
||||||
|
settings:
|
||||||
|
gofumpt:
|
||||||
|
module-path: github.com/ClusterCockpit/cc-backend
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- gofumpt # gofumpt = true
|
|
||||||
- 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
|
||||||
|
|
||||||
linters-settings:
|
settings:
|
||||||
gofumpt:
|
govet:
|
||||||
module-path: github.com/ClusterCockpit/cc-backend
|
enable:
|
||||||
|
- nilness
|
||||||
|
- unusedwrite
|
||||||
|
|
||||||
govet:
|
exclusions:
|
||||||
enable:
|
paths:
|
||||||
- nilness
|
|
||||||
- unusedwrite
|
|
||||||
|
|
||||||
issues:
|
|
||||||
exclude-dirs:
|
|
||||||
- .git
|
- .git
|
||||||
- .vscode
|
- .vscode
|
||||||
- .idea
|
- .idea
|
||||||
- node_modules
|
- node_modules
|
||||||
exclude-rules:
|
rules:
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- unparam
|
- unparam
|
||||||
|
|||||||
Reference in New Issue
Block a user