sops-nix/.golangci.yml
Sandro Jäckel 692f94d84a Fix lint errors, disable gosec
gosec only found int to uint downcasts which are unavoidable as sadly
the go API usually uses int instead of uint in places.
2025-09-09 22:31:41 +02:00

54 lines
893 B
YAML

version: "2"
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- contextcheck
- durationcheck
- errchkjson
- errorlint
- exhaustive
- gocheckcompilerdirectives
- gochecksumtype
- gosmopolitan
- loggercheck
- makezero
- misspell
- musttag
- nilerr
- nilnesserr
- protogetter
- reassign
- recvcheck
- revive
- rowserrcheck
- spancheck
- sqlclosecheck
- staticcheck
- testifylint
- unparam
- zerologlint
disable:
- noctx
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$