mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-07-17 06:25:16 +08:00
Migrate to golangci-lint 2
This commit is contained in:
parent
6be7eb746c
commit
74f0a60d61
1 changed files with 52 additions and 9 deletions
|
|
@ -1,12 +1,55 @@
|
||||||
|
version: "2"
|
||||||
linters:
|
linters:
|
||||||
presets:
|
enable:
|
||||||
- bugs
|
- asasalint
|
||||||
- unused
|
- asciicheck
|
||||||
|
- bidichk
|
||||||
|
- bodyclose
|
||||||
|
- contextcheck
|
||||||
|
- durationcheck
|
||||||
|
- errchkjson
|
||||||
|
- errorlint
|
||||||
|
- exhaustive
|
||||||
|
- gocheckcompilerdirectives
|
||||||
|
- gochecksumtype
|
||||||
|
- gosec
|
||||||
|
- 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:
|
enable:
|
||||||
- gofmt
|
- gofmt
|
||||||
- misspell
|
exclusions:
|
||||||
- revive
|
generated: lax
|
||||||
- stylecheck
|
paths:
|
||||||
disable:
|
- third_party$
|
||||||
# direnv is not a web server, context is not strictly necessary.
|
- builtin$
|
||||||
- noctx
|
- examples$
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue