mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-10 07:42:26 +08:00
63 lines
1.3 KiB
YAML
63 lines
1.3 KiB
YAML
linters:
|
|
# please, do not use `enable-all`: it's deprecated and will be removed soon.
|
|
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- exportloopref
|
|
- funlen
|
|
- goconst
|
|
# - gocritic
|
|
- gocyclo
|
|
- gofmt
|
|
- goimports
|
|
- goprintffuncname
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- nolintlint
|
|
- rowserrcheck
|
|
- staticcheck
|
|
- stylecheck
|
|
- typecheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- whitespace
|
|
- revive
|
|
|
|
issues:
|
|
include:
|
|
- EXC0002 # disable excluding of issues about comments from golint
|
|
exclude-rules:
|
|
- linters:
|
|
- stylecheck
|
|
text: "ST1000:"
|
|
# Excluding configuration per-path, per-linter, per-text and per-source
|
|
- path: _test\.go
|
|
linters:
|
|
- gomnd
|
|
|
|
# https://github.com/go-critic/go-critic/issues/926
|
|
- linters:
|
|
- gocritic
|
|
text: "unnecessaryDefer:"
|
|
|
|
linters-settings:
|
|
funlen:
|
|
lines: 66
|
|
statements: 50
|
|
|
|
#issues:
|
|
# include:
|
|
# - EXC0002 # disable excluding of issues about comments from golint
|
|
# exclude-rules:
|
|
# - linters:
|
|
# - stylecheck
|
|
# text: "ST1000:"
|