2019-08-30 18:33:25 +00:00
|
|
|
linters-settings:
|
|
|
|
govet:
|
|
|
|
check-shadowing: true
|
|
|
|
golint:
|
|
|
|
min-confidence: 0
|
|
|
|
gocyclo:
|
2019-12-12 01:27:03 +00:00
|
|
|
min-complexity: 40
|
2019-08-30 18:33:25 +00:00
|
|
|
maligned:
|
|
|
|
suggest-new: true
|
|
|
|
dupl:
|
|
|
|
threshold: 100
|
|
|
|
goconst:
|
|
|
|
min-len: 2
|
|
|
|
min-occurrences: 4
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable-all: true
|
|
|
|
disable:
|
|
|
|
- maligned
|
2019-12-12 01:27:03 +00:00
|
|
|
- lll
|
2019-09-27 21:51:53 +00:00
|
|
|
- gochecknoglobals
|
|
|
|
- gochecknoinits
|
2019-12-12 01:27:03 +00:00
|
|
|
# scopelint is useful, but also reports false positives
|
|
|
|
# that unfortunately can't be disabled. So we disable the
|
|
|
|
# linter rather than changing code that works.
|
|
|
|
# see: https://github.com/kyoh86/scopelint/issues/4
|
|
|
|
- scopelint
|