Files
cc-backend/.golangci.yml
Jan Eitzinger e2910b18b3 Fix golangci config
Entire-Checkpoint: 1a908bd95cfa
2026-03-30 16:29:15 +02:00

37 lines
653 B
YAML

version: "2"
run:
timeout: 5m
formatters:
enable:
- gofumpt # gofumpt formatter
settings:
gofumpt:
module-path: github.com/ClusterCockpit/cc-backend
linters:
enable:
- staticcheck # staticcheck = true
- unparam # unusedparams = true
- nilnil # nilness = true (catches nil returns of nil interface values)
- govet # base vet; nilness + unusedwrite via govet analyzers
settings:
govet:
enable:
- nilness
- unusedwrite
exclusions:
paths:
- .git
- .vscode
- .idea
- node_modules
rules:
- path: _test\.go
linters:
- unparam