
Should be `max-same-issues`, not `max-same`. Also adds a trailing newline to files, which is good form, and updates the generator to handle that cleanly. Fixes #216.
30 lines
531 B
YAML
30 lines
531 B
YAML
linters-settings:
|
|
govet:
|
|
check-shadowing: true
|
|
golint:
|
|
min-confidence: 0
|
|
gocyclo:
|
|
min-complexity: 10
|
|
maligned:
|
|
suggest-new: true
|
|
dupl:
|
|
threshold: 100
|
|
goconst:
|
|
min-len: 2
|
|
min-occurrences: 2
|
|
depguard:
|
|
list-type: blacklist
|
|
packages:
|
|
# logging is allowed only by logutils.Log, logrus
|
|
# is allowed to use only in logutils package
|
|
- github.com/sirupsen/logrus
|
|
misspell:
|
|
locale: US
|
|
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
- maligned
|
|
- prealloc
|
|
- gosec
|