2020-01-07 20:56:49 +00:00
|
|
|
# This file configures github.com/golangci/golangci-lint.
|
2019-11-01 15:26:53 +00:00
|
|
|
|
2020-01-07 20:56:49 +00:00
|
|
|
run:
|
|
|
|
timeout: 2m
|
2019-11-01 15:26:53 +00:00
|
|
|
tests: true
|
2020-01-07 20:56:49 +00:00
|
|
|
skip-dirs-use-default: true
|
2019-11-01 15:26:53 +00:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
2020-01-07 20:56:49 +00:00
|
|
|
- bodyclose
|
|
|
|
- deadcode
|
|
|
|
- depguard
|
|
|
|
- dogsled
|
|
|
|
- errcheck
|
|
|
|
- goconst
|
|
|
|
- gocyclo
|
2019-11-01 15:26:53 +00:00
|
|
|
- gofmt
|
|
|
|
- goimports
|
2020-01-07 20:56:49 +00:00
|
|
|
- golint
|
|
|
|
- gosec
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- interfacer
|
|
|
|
- misspell
|
|
|
|
- scopelint
|
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- stylecheck
|
|
|
|
- typecheck
|
|
|
|
- unconvert
|
2019-11-01 15:26:53 +00:00
|
|
|
- unused
|
2020-01-07 20:56:49 +00:00
|
|
|
- varcheck
|
2019-11-01 15:26:53 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2020-01-07 20:56:49 +00:00
|
|
|
- text: "comment on exported var"
|
2019-11-01 15:26:53 +00:00
|
|
|
linters:
|
2020-01-07 20:56:49 +00:00
|
|
|
- golint
|
|
|
|
- text: "ST1005:"
|
2019-11-01 15:26:53 +00:00
|
|
|
linters:
|
2020-01-07 20:56:49 +00:00
|
|
|
- stylecheck
|