releaser-pleaser/.golangci.yaml

61 lines
1.1 KiB
YAML
Raw Normal View History

version: "2"
2024-08-23 22:35:06 +02:00
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- contextcheck
- durationcheck
- errchkjson
- errorlint
- exhaustive
- gocheckcompilerdirectives
- gochecksumtype
- gocritic
- gomoddirectives
- gomodguard
- gosec
- gosmopolitan
- loggercheck
- makezero
- musttag
- nilerr
- nilnesserr
- noctx
- protogetter
- reassign
- recvcheck
- rowserrcheck
- spancheck
- sqlclosecheck
2024-08-23 22:35:06 +02:00
- testifylint
- unparam
- zerologlint
- revive
2024-08-23 22:35:06 +02:00
disable:
# preset error
# These should probably be cleaned up at some point if we want to publish part of this as a library.
- err113 # Very annoying to define static errors everywhere
- wrapcheck # Very annoying to wrap errors everywhere
# preset import
- depguard
settings:
revive:
rules:
- name: exported
disabled: true
2024-08-23 22:35:06 +02:00
formatters:
enable:
- gci
- goimports
settings:
gci:
sections:
- standard
- default
- localmodule