2018-06-12 16:34:24 +00:00
|
|
|
run:
|
|
|
|
concurrency: 4
|
|
|
|
deadline: 1m
|
|
|
|
issues-exit-code: 1
|
|
|
|
tests: true
|
|
|
|
skip-dirs:
|
|
|
|
- static
|
|
|
|
skip-files:
|
2019-06-14 10:16:30 +00:00
|
|
|
- bindata.go
|
2018-06-12 16:34:24 +00:00
|
|
|
- .*_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
|
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- deadcode
|
|
|
|
- errcheck
|
2018-10-17 10:17:58 +00:00
|
|
|
- gosec
|
2018-06-12 16:34:24 +00:00
|
|
|
- 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-10-17 10:17:58 +00:00
|
|
|
- "G304: Potential file inclusion via variable" # gosec
|
|
|
|
- "G104: Errors unhandled." #gosec
|