Refine golangci-lint settings (#294)

This commit is contained in:
Loyalsoldier 2020-10-10 00:19:09 +08:00 committed by GitHub
parent ed97a250e4
commit c50fef48a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -5,28 +5,19 @@ run:
issues:
new: true
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
linters:
enable:
- bodyclose
- depguard
- errcheck
- exhaustive
- gocritic
- gofmt
- goimports
- golint
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- misspell
- nakedret
- noctx
@ -39,8 +30,9 @@ linters:
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
disable:
- deadcode
- errcheck
- unused