mirror of
https://github.com/sbrow/nix.git
synced 2026-06-27 10:48:33 -04:00
feat(go): Added more linters.
This commit is contained in:
@@ -1,12 +1,15 @@
|
|||||||
version: "2"
|
version: "2"
|
||||||
linters:
|
linters:
|
||||||
default: standard
|
default: standard
|
||||||
|
# default: all
|
||||||
enable:
|
enable:
|
||||||
- bidichk
|
- bidichk
|
||||||
- containedctx
|
- containedctx
|
||||||
- contextcheck
|
- contextcheck
|
||||||
- decorder
|
- decorder
|
||||||
- err13
|
- depguard
|
||||||
|
- err113
|
||||||
|
- errchkjson
|
||||||
- errorlint
|
- errorlint
|
||||||
- exhaustive
|
- exhaustive
|
||||||
- fatcontext
|
- fatcontext
|
||||||
@@ -16,13 +19,35 @@ linters:
|
|||||||
- intrange
|
- intrange
|
||||||
- maintidx
|
- maintidx
|
||||||
- modernize
|
- modernize
|
||||||
- nilnil
|
- nlreturn
|
||||||
- noctx
|
- noctx
|
||||||
- prealloc
|
- prealloc
|
||||||
- recvcheck
|
- recvcheck
|
||||||
- sloglint
|
- sloglint
|
||||||
- unparam
|
- unparam
|
||||||
|
- unused
|
||||||
- usestdlibvars
|
- usestdlibvars
|
||||||
|
- whitespace
|
||||||
|
disable:
|
||||||
|
# Deprecateed
|
||||||
|
- gomodguard
|
||||||
|
- wsl
|
||||||
|
|
||||||
|
# Comment checker
|
||||||
|
- revive
|
||||||
|
- wrapcheck # reinclude
|
||||||
|
|
||||||
|
# Not useful
|
||||||
|
- cyclop
|
||||||
|
- funlen
|
||||||
|
- gocognit
|
||||||
|
- gocyclo
|
||||||
|
- nestif
|
||||||
|
- noinlineerr
|
||||||
|
- tagalign
|
||||||
|
- tagliatelle
|
||||||
|
- varnamelen
|
||||||
|
- wsl_v5
|
||||||
settings:
|
settings:
|
||||||
recvcheck:
|
recvcheck:
|
||||||
disable-builtin: false
|
disable-builtin: false
|
||||||
@@ -31,3 +56,4 @@ linters:
|
|||||||
formatters:
|
formatters:
|
||||||
enable:
|
enable:
|
||||||
- goimports
|
- goimports
|
||||||
|
- golines
|
||||||
|
|||||||
Reference in New Issue
Block a user