2019-07-01 20:26:59 +00:00
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
2020-02-18 12:19:04 +00:00
|
|
|
- gofmt
|
|
|
|
- govet
|
2019-07-05 11:21:54 +00:00
|
|
|
- goimports
|
2019-07-01 20:26:59 +00:00
|
|
|
- misspell
|
|
|
|
- goconst
|
|
|
|
- golint
|
|
|
|
- errcheck
|
2019-07-02 13:25:00 +00:00
|
|
|
- gosec
|
2019-07-01 20:26:59 +00:00
|
|
|
- unconvert
|
|
|
|
- staticcheck
|
|
|
|
- varcheck
|
|
|
|
- structcheck
|
|
|
|
- deadcode
|
2019-07-05 11:21:54 +00:00
|
|
|
- scopelint
|
2019-07-01 20:26:59 +00:00
|
|
|
|
2019-07-02 13:25:00 +00:00
|
|
|
|
2019-07-01 20:26:59 +00:00
|
|
|
issues:
|
2019-07-02 13:25:00 +00:00
|
|
|
exclude:
|
|
|
|
- "func name will be used as test\\.Test.* by other packages, and that stutters; consider calling this"
|
2019-07-03 16:59:49 +00:00
|
|
|
- "Potential file inclusion via variable"
|
2019-07-11 08:00:24 +00:00
|
|
|
- "should have( a package)? comment"
|
2019-07-02 13:25:00 +00:00
|
|
|
|
2019-07-01 20:26:59 +00:00
|
|
|
exclude-use-default: false
|
2019-07-02 13:25:00 +00:00
|
|
|
exclude-rules:
|
|
|
|
- path: node/modules/lp2p
|
|
|
|
linters:
|
|
|
|
- golint
|
2019-07-08 15:14:36 +00:00
|
|
|
- path: ".*_test.go"
|
|
|
|
linters:
|
|
|
|
- gosec
|
2019-07-01 20:26:59 +00:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
goconst:
|
|
|
|
min-occurrences: 6
|