aides-repo-api/.golangci.yml

42 lines
679 B
YAML
Raw Normal View History

2024-12-15 08:39:18 +00:00
run:
timeout: 5m
exclude-dirs:
- "vendor"
exclue-files:
- ".*\\.gen\\.go"
linters-settings:
errcheck:
exclude-functions:
- github.com/go-chi/render.Render
goimports:
local-prefixes: "code.aides.space/aides-infra/aides-repo-api"
2024-12-15 08:39:18 +00:00
gofmt:
simplify: true
gofumpt:
extra-rules: true
forbidigo:
forbid:
- p: ^fmt\.Print.*$
msg: Do not commit print statements.
linters:
enable:
- gofmt
- gofumpt
- goimports
- gocritic
- govet
- staticcheck
- unused
- errcheck
- typecheck
- forbidigo
issues:
fix: true
exclude-rules:
- path: _test\.go
linters:
- errcheck