2018-06-12 16:34:24 +00:00
|
|
|
run:
|
|
|
|
concurrency: 4
|
|
|
|
deadline: 1m
|
|
|
|
issues-exit-code: 1
|
|
|
|
tests: true
|
|
|
|
# build-tags:
|
|
|
|
# - mytag
|
|
|
|
skip-dirs:
|
|
|
|
- static
|
|
|
|
skip-files:
|
|
|
|
- .*_mock.go
|
|
|
|
- jail/doc.go
|
|
|
|
|
|
|
|
output:
|
|
|
|
format: colored-line-number
|
|
|
|
print-issued-lines: true
|
|
|
|
print-linter-name: true
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
errcheck:
|
|
|
|
check-type-assertions: false
|
|
|
|
check-blank: false
|
|
|
|
govet:
|
|
|
|
check-shadowing: false
|
|
|
|
golint:
|
|
|
|
min-confidence: 0.8
|
|
|
|
gofmt:
|
|
|
|
simplify: true
|
|
|
|
gocyclo:
|
|
|
|
min-complexity: 16
|
|
|
|
maligned:
|
|
|
|
suggest-new: true
|
|
|
|
dupl:
|
|
|
|
threshold: 50
|
|
|
|
goconst:
|
|
|
|
min-len: 3
|
|
|
|
min-occurrences: 2
|
|
|
|
# depguard:
|
|
|
|
# list-type: blacklist
|
|
|
|
# include-go-root: false
|
|
|
|
# packages:
|
|
|
|
# - github.com/davecgh/go-spew/spew
|
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- deadcode
|
|
|
|
#- depguard
|
|
|
|
- errcheck
|
|
|
|
- gas
|
|
|
|
- goconst
|
|
|
|
- gocyclo
|
|
|
|
- gofmt
|
|
|
|
- golint
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- interfacer
|
|
|
|
- megacheck
|
2018-06-29 12:20:47 +00:00
|
|
|
- misspell
|
2018-06-12 16:34:24 +00:00
|
|
|
- structcheck
|
2018-06-20 16:13:10 +00:00
|
|
|
- typecheck
|
2018-06-12 16:34:24 +00:00
|
|
|
- unconvert
|
|
|
|
- varcheck
|
|
|
|
fast: false
|
|
|
|
|
2018-06-29 12:20:47 +00:00
|
|
|
issues:
|
|
|
|
exclude:
|
|
|
|
- "composite literal uses unkeyed fields" # govet
|
2018-06-12 16:34:24 +00:00
|
|
|
# exclude-use-default: true
|
|
|
|
# max-per-linter: 0
|
|
|
|
# max-same: 0
|
|
|
|
# new: false
|
|
|
|
# new-from-rev: ""
|
|
|
|
# new-from-patch: ""
|