fix lint issue (#319)

This commit is contained in:
Minghe
2019-10-14 10:20:12 +08:00
committed by GitHub
parent 293481f081
commit 3882f843bf
9 changed files with 32 additions and 26 deletions

View File

@@ -1,5 +1,4 @@
run:
concurrency: 4
deadline: 10m
timeout: 10m
issues-exit-code: 1
@@ -7,21 +6,25 @@ run:
skip-dirs:
- examples
- api/images
- test
# skip-files:
- test/functions
linters:
enable:
- megacheck
- govet
- deadcode
# - gocyclo
- golint
- varcheck
- structcheck
- errcheck
- dupl
- ineffassign
- goimports
- stylecheck
- gosec
- interfacer
- unconvert
enable-all: false
- goconst
- gocyclo
- misspell
- unparam
issues:
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- goconst
- errcheck
- dupl
- gosec