mirror of
https://github.com/spf13/viper
synced 2024-11-04 20:27:02 +00:00
chore: update golangci-lint
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
acd965b54e
commit
04ef5fa07d
2 changed files with 20 additions and 3 deletions
|
@ -16,47 +16,64 @@ linters:
|
||||||
- deadcode
|
- deadcode
|
||||||
- dogsled
|
- dogsled
|
||||||
- dupl
|
- dupl
|
||||||
|
- durationcheck
|
||||||
- exhaustive
|
- exhaustive
|
||||||
- exportloopref
|
- exportloopref
|
||||||
- gci
|
- gci
|
||||||
- goconst
|
- goconst
|
||||||
- gofmt
|
- gofmt
|
||||||
- gofumpt
|
|
||||||
- goimports
|
- goimports
|
||||||
- golint
|
- gomoddirectives
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
- govet
|
- govet
|
||||||
|
- importas
|
||||||
- ineffassign
|
- ineffassign
|
||||||
|
- makezero
|
||||||
- misspell
|
- misspell
|
||||||
- nakedret
|
- nakedret
|
||||||
|
- nilerr
|
||||||
- noctx
|
- noctx
|
||||||
- nolintlint
|
- nolintlint
|
||||||
- prealloc
|
- prealloc
|
||||||
|
- predeclared
|
||||||
|
- revive
|
||||||
- rowserrcheck
|
- rowserrcheck
|
||||||
- sqlclosecheck
|
- sqlclosecheck
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- structcheck
|
- structcheck
|
||||||
- stylecheck
|
- stylecheck
|
||||||
|
- tparallel
|
||||||
- typecheck
|
- typecheck
|
||||||
- unconvert
|
- unconvert
|
||||||
- unparam
|
- unparam
|
||||||
- unused
|
- unused
|
||||||
- varcheck
|
- varcheck
|
||||||
|
- wastedassign
|
||||||
- whitespace
|
- whitespace
|
||||||
|
|
||||||
# fixme
|
# fixme
|
||||||
|
# - cyclop
|
||||||
# - errcheck
|
# - errcheck
|
||||||
|
# - errorlint
|
||||||
|
# - exhaustivestruct
|
||||||
|
# - forbidigo
|
||||||
|
# - forcetypeassert
|
||||||
# - gochecknoglobals
|
# - gochecknoglobals
|
||||||
# - gochecknoinits
|
# - gochecknoinits
|
||||||
# - gocognit
|
# - gocognit
|
||||||
# - gocritic
|
# - gocritic
|
||||||
# - gocyclo
|
# - gocyclo
|
||||||
# - godot
|
# - godot
|
||||||
|
# - gofumpt
|
||||||
# - gosec
|
# - gosec
|
||||||
# - gosimple
|
# - gosimple
|
||||||
|
# - ifshort
|
||||||
# - lll
|
# - lll
|
||||||
# - nlreturn
|
# - nlreturn
|
||||||
|
# - paralleltest
|
||||||
# - scopelint
|
# - scopelint
|
||||||
|
# - thelper
|
||||||
|
# - wrapcheck
|
||||||
|
|
||||||
# unused
|
# unused
|
||||||
# - depguard
|
# - depguard
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -16,7 +16,7 @@ endif
|
||||||
|
|
||||||
# Dependency versions
|
# Dependency versions
|
||||||
GOTESTSUM_VERSION = 0.5.3
|
GOTESTSUM_VERSION = 0.5.3
|
||||||
GOLANGCI_VERSION = 1.31.0
|
GOLANGCI_VERSION = 1.40.1
|
||||||
|
|
||||||
# Add the ability to override some variables
|
# Add the ability to override some variables
|
||||||
# Use with care
|
# Use with care
|
||||||
|
|
Loading…
Reference in a new issue