mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-01-27 10:19:35 +00:00
Forbid github.com/pkg/errors in k/k
kubeadm has replaced pkg/errors with an internal implementation, which means that pkg/errors can be marked as unwanted (once a final straggler is replaced). Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
committed by
Lubomir I. Ivanov
parent
efaaece0fb
commit
d1bddfd779
@@ -254,13 +254,6 @@ linters:
|
||||
deny:
|
||||
- pkg: "github.com/google/go-cmp/cmp"
|
||||
desc: "cmp is allowed only in test files"
|
||||
pkg-errors:
|
||||
files:
|
||||
- $all
|
||||
- "!**/cmd/kubeadm/**"
|
||||
deny:
|
||||
- pkg: "github.com/pkg/errors"
|
||||
desc: "pkg/errors is allowed only in cmd/kubeadm"
|
||||
forbidigo:
|
||||
analyze-types: true
|
||||
forbid:
|
||||
|
||||
@@ -268,13 +268,6 @@ linters:
|
||||
deny:
|
||||
- pkg: "github.com/google/go-cmp/cmp"
|
||||
desc: "cmp is allowed only in test files"
|
||||
pkg-errors:
|
||||
files:
|
||||
- $all
|
||||
- "!**/cmd/kubeadm/**"
|
||||
deny:
|
||||
- pkg: "github.com/pkg/errors"
|
||||
desc: "pkg/errors is allowed only in cmd/kubeadm"
|
||||
forbidigo:
|
||||
analyze-types: true
|
||||
forbid:
|
||||
|
||||
@@ -198,13 +198,6 @@ linters:
|
||||
deny:
|
||||
- pkg: "github.com/google/go-cmp/cmp"
|
||||
desc: "cmp is allowed only in test files"
|
||||
pkg-errors:
|
||||
files:
|
||||
- $all
|
||||
- "!**/cmd/kubeadm/**"
|
||||
deny:
|
||||
- pkg: "github.com/pkg/errors"
|
||||
desc: "pkg/errors is allowed only in cmd/kubeadm"
|
||||
forbidigo:
|
||||
analyze-types: true
|
||||
forbid:
|
||||
|
||||
@@ -227,7 +227,6 @@
|
||||
"github.com/pkg/errors": [
|
||||
"github.com/Microsoft/hnslib",
|
||||
"github.com/google/cadvisor",
|
||||
"k8s.io/kubernetes",
|
||||
"sigs.k8s.io/kustomize/api",
|
||||
"sigs.k8s.io/kustomize/kustomize/v5"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user