41 lines
680 B
YAML
41 lines
680 B
YAML
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.alt-gnome.ru/aides-infra/aides-repo-api"
|
|
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
|