From 97de704c895e6cd1b3acd0dd73932b2a693d6aaf Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Thu, 15 Aug 2024 10:36:58 +0200 Subject: [PATCH] golangci-lint: only exclude specific deprecations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Büringer buringerst@vmware.com --- .golangci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 9860ec3daf..fb46ded6f3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -192,12 +192,18 @@ issues: exclude-rules: # Specific exclude rules for deprecated items that are still part of the codebase. These # should be removed as the referenced deprecated item is removed from the project. + # Deprecations for AutoConfigure - linters: - staticcheck - text: "SA1019: .* is deprecated: This package will be removed in one of the next releases." + text: "SA1019: .*AutoConfigure is deprecated" + # Deprecations for PreferredAPIServerCIDR - linters: - staticcheck - text: "SA1019: .* is deprecated: This field is going to be removed in a future release." + text: "SA1019: .*PreferredAPIServerCIDR is deprecated" + # Deprecations for old api groups + - linters: + - staticcheck + text: "SA1019: \"sigs.k8s.io/cluster-api-provider-vsphere/apis/(v1alpha3|v1alpha4)\" is deprecated: This package will be removed in one of the next releases." - linters: - revive text: "exported: exported method .*\\.(Reconcile|SetupWithManager|SetupWebhookWithManager) should have comment or be unexported"