Skip to content

Commit

Permalink
golangci-lint: only exclude specific deprecations
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer [email protected]
  • Loading branch information
sbueringer committed Aug 15, 2024
1 parent bfbf8a4 commit b1fe980
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b1fe980

Please sign in to comment.