Fix golangci config

Entire-Checkpoint: 1a908bd95cfa
This commit is contained in:
2026-03-30 16:29:15 +02:00
parent ed236ec539
commit e2910b18b3

View File

@@ -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