lotus/.golangci.yml
Jakub Sztandera b2a0ad68dd
Add gofmt to golangci-lint
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-02-18 13:19:04 +01:00

38 lines
680 B
YAML

linters:
disable-all: true
enable:
- gofmt
- govet
- goimports
- misspell
- goconst
- golint
- errcheck
- gosec
- unconvert
- staticcheck
- varcheck
- structcheck
- deadcode
- scopelint
issues:
exclude:
- "func name will be used as test\\.Test.* by other packages, and that stutters; consider calling this"
- "Potential file inclusion via variable"
- "should have( a package)? comment"
exclude-use-default: false
exclude-rules:
- path: node/modules/lp2p
linters:
- golint
- path: ".*_test.go"
linters:
- gosec
linters-settings:
goconst:
min-occurrences: 6