diff --git a/hack/golangci-hints.yaml b/hack/golangci-hints.yaml index 90863541f27..b716ea07e60 100644 --- a/hack/golangci-hints.yaml +++ b/hack/golangci-hints.yaml @@ -205,7 +205,6 @@ linters-settings: # please keep this alphabetized msg: should not be used because managedFields was removed - p: \.Add$ pkg: ^k8s\.io/component-base/featuregate$ - type: ^MutableFeatureGate$ msg: should not use MutableFeatureGate.Add, use AddVersioned instead - p: ^gomega\.BeTrue$ pkg: ^github.com/onsi/gomega$ diff --git a/hack/golangci.yaml b/hack/golangci.yaml index f7c834116f3..34c4e3ab632 100644 --- a/hack/golangci.yaml +++ b/hack/golangci.yaml @@ -271,7 +271,6 @@ linters-settings: # please keep this alphabetized msg: should not be used because managedFields was removed - p: \.Add$ pkg: ^k8s\.io/component-base/featuregate$ - type: ^MutableFeatureGate$ msg: should not use MutableFeatureGate.Add, use AddVersioned instead gocritic: enabled-checks: diff --git a/hack/golangci.yaml.in b/hack/golangci.yaml.in index 6c6ed5e99c6..06ad332b8d0 100644 --- a/hack/golangci.yaml.in +++ b/hack/golangci.yaml.in @@ -223,7 +223,6 @@ linters-settings: # please keep this alphabetized msg: should not be used because managedFields was removed - p: \.Add$ pkg: ^k8s\.io/component-base/featuregate$ - type: ^MutableFeatureGate$ msg: should not use MutableFeatureGate.Add, use AddVersioned instead {{- if .Hints}} - p: ^gomega\.BeTrue$