mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-30 20:47:31 +02:00
37 lines
653 B
YAML
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
|