build: add depgaurd linter and block consul flags
This commit is contained in:
parent
0091325721
commit
0b28a6a7c7
|
@ -52,6 +52,11 @@ linters-settings:
|
|||
gofmt:
|
||||
# simplify code: gofmt with `-s` option, true by default
|
||||
simplify: true
|
||||
depguard:
|
||||
# disallow packages from being used
|
||||
list-type: blacklist
|
||||
packages:
|
||||
- github.com/hashicorp/consul/command/flags
|
||||
|
||||
issues:
|
||||
exclude:
|
||||
|
@ -74,6 +79,7 @@ linters:
|
|||
- unconvert
|
||||
- gofmt
|
||||
- gosimple
|
||||
- depguard
|
||||
# Stretch Goal
|
||||
#- maligned
|
||||
fast: false
|
||||
|
|
Loading…
Reference in New Issue