Files
cc-backend/.golangci.yml
Jan Eitzinger ed236ec539 Add Make targets for formatting and linting
Add configuration and document usage in README

Entire-Checkpoint: 53425877e242
2026-03-30 16:23:12 +02:00

31 lines
606 B
YAML

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