mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Upgrade linter
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
387404d518
commit
ae12c841bc
2 changed files with 64 additions and 20 deletions
|
@ -5,23 +5,67 @@ linters-settings:
|
||||||
local-prefixes: github.com/spf13/viper
|
local-prefixes: github.com/spf13/viper
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable-all: true
|
disable-all: true
|
||||||
disable:
|
enable:
|
||||||
- funlen
|
- bodyclose
|
||||||
- maligned
|
- deadcode
|
||||||
|
- dogsled
|
||||||
|
- dupl
|
||||||
|
- exhaustive
|
||||||
|
- exportloopref
|
||||||
|
- goconst
|
||||||
|
- gofmt
|
||||||
|
- goimports
|
||||||
|
- golint
|
||||||
|
- goprintffuncname
|
||||||
|
- govet
|
||||||
|
- ineffassign
|
||||||
|
- misspell
|
||||||
|
- nakedret
|
||||||
|
- noctx
|
||||||
|
- nolintlint
|
||||||
|
- prealloc
|
||||||
|
- rowserrcheck
|
||||||
|
- sqlclosecheck
|
||||||
|
- staticcheck
|
||||||
|
- structcheck
|
||||||
|
- stylecheck
|
||||||
|
- typecheck
|
||||||
|
- unconvert
|
||||||
|
- unparam
|
||||||
|
- unused
|
||||||
|
- varcheck
|
||||||
|
- whitespace
|
||||||
|
|
||||||
# TODO: fix me
|
# fixme
|
||||||
- wsl
|
# - errcheck
|
||||||
- gochecknoinits
|
# - gci
|
||||||
- gosimple
|
# - gochecknoglobals
|
||||||
- gochecknoglobals
|
# - gochecknoinits
|
||||||
- errcheck
|
# - gocognit
|
||||||
- lll
|
# - gocritic
|
||||||
- godox
|
# - gocyclo
|
||||||
- scopelint
|
# - godot
|
||||||
- gocyclo
|
# - gofumpt
|
||||||
- gocognit
|
# - gosec
|
||||||
- gocritic
|
# - gosimple
|
||||||
|
# - lll
|
||||||
|
# - nlreturn
|
||||||
|
# - scopelint
|
||||||
|
|
||||||
service:
|
# unused
|
||||||
golangci-lint-version: 1.21.x
|
# - depguard
|
||||||
|
# - goheader
|
||||||
|
# - gomodguard
|
||||||
|
|
||||||
|
# don't enable:
|
||||||
|
# - asciicheck
|
||||||
|
# - funlen
|
||||||
|
# - godox
|
||||||
|
# - goerr113
|
||||||
|
# - gomnd
|
||||||
|
# - interfacer
|
||||||
|
# - maligned
|
||||||
|
# - nestif
|
||||||
|
# - testpackage
|
||||||
|
# - wsl
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -15,8 +15,8 @@ TEST_FORMAT = short-verbose
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Dependency versions
|
# Dependency versions
|
||||||
GOTESTSUM_VERSION = 0.4.0
|
GOTESTSUM_VERSION = 0.5.3
|
||||||
GOLANGCI_VERSION = 1.21.0
|
GOLANGCI_VERSION = 1.31.0
|
||||||
|
|
||||||
# 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