2021-11-12 14:48:10 -06:00
|
|
|
# Minimum golangci-lint version required: v1.42.0
|
2021-01-12 00:39:43 -06:00
|
|
|
run:
|
|
|
|
timeout: 3m
|
|
|
|
|
2019-01-15 19:41:02 -06:00
|
|
|
linters-settings:
|
|
|
|
gocyclo:
|
|
|
|
# minimal code complexity to report, 30 by default (but we recommend 10-20)
|
2021-05-06 08:30:12 -05:00
|
|
|
min-complexity: 15
|
2019-01-15 19:41:02 -06:00
|
|
|
gocritic:
|
2021-05-03 11:52:03 -05:00
|
|
|
disabled-checks:
|
2019-01-15 19:41:02 -06:00
|
|
|
- ifElseChain
|
2021-05-18 01:14:49 -05:00
|
|
|
importas:
|
|
|
|
aliases:
|
|
|
|
- pkg: 'github.com/sirupsen/logrus'
|
|
|
|
alias: log
|
|
|
|
- pkg: 'github.com/stretchr/testify/assert'
|
|
|
|
alias: assert
|
|
|
|
depguard:
|
|
|
|
list-type: blacklist
|
|
|
|
include-go-root: true
|
|
|
|
packages:
|
|
|
|
- gotest.tools/v3/assert
|
|
|
|
- log
|
|
|
|
packages-with-error-message:
|
|
|
|
- gotest.tools/v3: 'Please keep tests unified using only github.com/stretchr/testify'
|
|
|
|
- log: 'Please keep logging unified using only github.com/sirupsen/logrus'
|
2019-01-15 19:41:02 -06:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
2021-05-03 11:52:03 -05:00
|
|
|
- megacheck
|
|
|
|
- govet
|
2021-11-12 14:48:10 -06:00
|
|
|
- revive
|
2021-05-03 11:52:03 -05:00
|
|
|
- gocyclo
|
|
|
|
- gosec
|
|
|
|
- unconvert
|
|
|
|
- dupl
|
|
|
|
- nakedret
|
|
|
|
- prealloc
|
|
|
|
- exportloopref
|
|
|
|
- gocritic
|
|
|
|
- goimports
|
|
|
|
- whitespace
|
|
|
|
- misspell
|
2021-05-18 01:14:49 -05:00
|
|
|
- depguard
|
|
|
|
- importas
|