From 834a0d92cfab06f959368e8a629beb0fd207f861 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 7 Mar 2025 17:27:03 +0200 Subject: [PATCH] hack: fix settings for forbidigo linter --- hack/golangci-hints.yaml | 1 - hack/golangci.yaml | 1 - hack/golangci.yaml.in | 1 - 3 files changed, 3 deletions(-) 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$