improve linting

This commit is contained in:
Casey Lee
2019-01-15 17:41:02 -08:00
parent 2b471fbff0
commit 6f07c10d8c
9 changed files with 161 additions and 68 deletions

22
.golangci.yml Normal file
View File

@@ -0,0 +1,22 @@
linters-settings:
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 10
gocritic:
disabled-checks:
- ifElseChain
linters:
enable:
- megacheck
- govet
- golint
- gocyclo
- gosec
- unconvert
- dupl
- maligned
- nakedret
- prealloc
- scopelint
- gocritic