mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
build: add depgaurd linter and block consul flags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user