diff --git a/hack/golangci-hints.yaml b/hack/golangci-hints.yaml index 2ac2132b289..c2ce0914f78 100644 --- a/hack/golangci-hints.yaml +++ b/hack/golangci-hints.yaml @@ -48,7 +48,7 @@ issues: # Adding unversioned feature gates is allowed in tests - linters: - forbidigo - text: should not use MutableFeatureGate.Add, use AddVersioned instead + text: should not use Add, use AddVersioned instead path: _test.go$ # The Kubernetes naming convention for conversion functions uses underscores diff --git a/hack/golangci.yaml b/hack/golangci.yaml index 7972d00d5c0..5daa137e02a 100644 --- a/hack/golangci.yaml +++ b/hack/golangci.yaml @@ -48,7 +48,7 @@ issues: # Adding unversioned feature gates is allowed in tests - linters: - forbidigo - text: should not use MutableFeatureGate.Add, use AddVersioned instead + text: should not use Add, use AddVersioned instead path: _test.go$ # TODO(oscr) Remove these excluded directories and fix findings. Due to large amount of findings in different components diff --git a/hack/golangci.yaml.in b/hack/golangci.yaml.in index 3ff7507143e..a2987c4b33b 100644 --- a/hack/golangci.yaml.in +++ b/hack/golangci.yaml.in @@ -48,7 +48,7 @@ issues: # Adding unversioned feature gates is allowed in tests - linters: - forbidigo - text: should not use MutableFeatureGate.Add, use AddVersioned instead + text: should not use Add, use AddVersioned instead path: _test.go$ {{- if .Base}}