Add Make targets for formatting and linting

Add configuration and document usage in README

Entire-Checkpoint: 53425877e242
This commit is contained in:
2026-03-30 16:23:12 +02:00
parent 82c514b11a
commit ed236ec539
4 changed files with 108 additions and 1 deletions

30
.golangci.yml Normal file
View File

@@ -0,0 +1,30 @@
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