Skip to content

Commit

Permalink
Merge pull request #3160 from sbueringer/pr-improve-golang
Browse files Browse the repository at this point in the history
🌱 golangci-lint: only exclude specific deprecations
  • Loading branch information
k8s-ci-robot committed Aug 15, 2024
2 parents eb5dc66 + 97de704 commit b43d512
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 b43d512

Please sign in to comment.