a45b689d8e
* build: update to go1.21 * go: eliminate helpers in favor of min/max * build: run go mod tidy * build: swap depguard for semgrep * command: fixup broken tls error check on go1.21
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"
|