Migrate to golangci-lint

Signed-off-by: Tam Mach <sayboras@yahoo.com>
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
sayboras
2019-10-09 23:02:21 +11:00
committed by Wang Yan
parent 9142de99fa
commit f807afbf85
35 changed files with 61 additions and 105 deletions

20
.golangci.yml Normal file
View File

@@ -0,0 +1,20 @@
linters:
enable:
- structcheck
- varcheck
- staticcheck
- unconvert
- gofmt
- goimports
- golint
- ineffassign
- vet
- unused
- misspell
disable:
- errcheck
run:
deadline: 2m
skip-dirs:
- vendor