Update golangci-lint config
This commit is contained in:
parent
844298f73e
commit
fffe71b813
@ -1,15 +1,7 @@
|
|||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
output:
|
|
||||||
format: tab
|
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
govet:
|
|
||||||
check-shadowing: true
|
|
||||||
golint:
|
|
||||||
min-confidence: 0.1
|
|
||||||
maligned:
|
|
||||||
suggest-new: true
|
|
||||||
goconst:
|
goconst:
|
||||||
min-len: 2
|
min-len: 2
|
||||||
min-occurrences: 2
|
min-occurrences: 2
|
||||||
@ -23,30 +15,28 @@ linters-settings:
|
|||||||
- style
|
- style
|
||||||
- experimental
|
- experimental
|
||||||
disabled-checks:
|
disabled-checks:
|
||||||
- unnamedResult
|
|
||||||
- paramTypeCombine
|
- paramTypeCombine
|
||||||
|
- unnamedResult
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- megacheck
|
- copyloopvar
|
||||||
- revive
|
|
||||||
- govet
|
|
||||||
- unconvert
|
|
||||||
- megacheck
|
|
||||||
- unused
|
|
||||||
- gas
|
|
||||||
- gocyclo
|
|
||||||
- dupl
|
- dupl
|
||||||
- misspell
|
|
||||||
- unparam
|
|
||||||
- typecheck
|
|
||||||
- ineffassign
|
|
||||||
- stylecheck
|
|
||||||
- gochecknoinits
|
- gochecknoinits
|
||||||
- exportloopref
|
|
||||||
- gocritic
|
- gocritic
|
||||||
- nakedret
|
- gocyclo
|
||||||
|
- gosec
|
||||||
- gosimple
|
- gosimple
|
||||||
|
- govet
|
||||||
|
- ineffassign
|
||||||
|
- misspell
|
||||||
|
- nakedret
|
||||||
- prealloc
|
- prealloc
|
||||||
|
- revive
|
||||||
|
- staticcheck
|
||||||
|
- stylecheck
|
||||||
|
- typecheck
|
||||||
|
- unconvert
|
||||||
|
- unused
|
||||||
fast: false
|
fast: false
|
||||||
disable-all: true
|
disable-all: true
|
||||||
|
Loading…
Reference in New Issue
Block a user