mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-30 20:47:31 +02:00
40 lines
858 B
YAML
40 lines
858 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
|
|
- stylecheck # naming conventions (ST1003: acronyms, camelCase)
|
|
|
|
settings:
|
|
stylecheck:
|
|
checks: ["ST1003"]
|
|
|
|
govet:
|
|
enable:
|
|
- nilness
|
|
- unusedwrite
|
|
|
|
exclusions:
|
|
paths:
|
|
- .git
|
|
- .vscode
|
|
- .idea
|
|
- node_modules
|
|
- internal/graph/generated # gqlgen generated code
|
|
- internal/api/docs\.go # swaggo generated code
|
|
- _test\.go # test files excluded from all linters
|