add golangci config

pull/2725/head
Kslr 2020-09-04 13:38:15 +08:00 committed by GitHub
parent 6981711fe5
commit 93afbc5f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 46 additions and 0 deletions

46
.github/linters/.golangci.yml vendored Normal file
View File

@ -0,0 +1,46 @@
run:
modules-download-mode: vendor
skip-dirs:
- generated.*
- external
linters:
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exhaustive
- funlen
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- lll
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace