2019-11-09 14:41:31 +00:00
|
|
|
run:
|
|
|
|
# timeout for analysis
|
|
|
|
deadline: 4m
|
|
|
|
|
|
|
|
# Linting uses a lot of memory. Keep it under control by only running a single
|
|
|
|
# worker.
|
|
|
|
concurrency: 1
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
govet:
|
|
|
|
# Don't report about shadowed variables
|
|
|
|
check-shadowing: false
|
|
|
|
gofmt:
|
|
|
|
# simplify code: gofmt with `-s` option, true by default
|
|
|
|
simplify: true
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable-all: true
|
|
|
|
disable:
|
|
|
|
- gochecknoglobals
|
2020-01-04 22:58:10 +00:00
|
|
|
- gosec
|
|
|
|
- funlen
|
|
|
|
- maligned
|
2020-03-30 16:14:04 +00:00
|
|
|
- interfacer
|
2020-01-04 22:58:10 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- path: cmd/chantools
|
|
|
|
linters:
|
|
|
|
- lll
|