19 lines
524 B
YAML
19 lines
524 B
YAML
|
# Copyright (c) HashiCorp, Inc.
|
||
|
# SPDX-License-Identifier: MPL-2.0
|
||
|
|
||
|
rules:
|
||
|
- id: "disallow-imports"
|
||
|
patterns:
|
||
|
- pattern: '"github.com/boltdb/bolt"'
|
||
|
- pattern: '"github.com/pkg/errors"'
|
||
|
- pattern: '"github.com/hashicorp/consul"'
|
||
|
- pattern: '"github.com/hashicorp/consul/command/flags"'
|
||
|
- pattern: '"github.com/hashicorp/consul/sdk"'
|
||
|
message: "Import of this package has been disallowed"
|
||
|
languages:
|
||
|
- "generic"
|
||
|
severity: "ERROR"
|
||
|
paths:
|
||
|
include:
|
||
|
- "*.go"
|