build: add depgaurd linter and block consul flags

This commit is contained in:
Seth Hoenig 2020-12-14 10:21:26 -06:00
parent 0091325721
commit 0b28a6a7c7
1 changed files with 6 additions and 0 deletions

View File

@ -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