Files
pocket-id/backend/.golangci.yml

64 lines
1.0 KiB
YAML
Raw Normal View History

version: "2"
run:
tests: true
timeout: 5m
linters:
default: none
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- contextcheck
- copyloopvar
- durationcheck
- errcheck
- errchkjson
- errorlint
- exhaustive
- gocheckcompilerdirectives
- gochecksumtype
- gocognit
- gocritic
- gosec
- gosmopolitan
- govet
- ineffassign
- loggercheck
- makezero
- musttag
- nilerr
- nilnesserr
- noctx
- protogetter
- reassign
- recvcheck
- rowserrcheck
- spancheck
- sqlclosecheck
- staticcheck
- testifylint
- unused
- usestdlibvars
- zerologlint
2025-03-27 17:46:10 +01:00
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
2025-03-27 17:46:10 +01:00
paths:
- third_party$
- builtin$
- examples$
2025-03-27 17:46:10 +01:00
- internal/service/test_service.go
formatters:
enable:
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$