Fix golangci-lint: formatting, nilerr false positive, deprecated linter names
Some checks failed
CI / build (push) Failing after 34s

- gofmt: fix struct field alignment in types.go, resource_server.go,
  data_source_ssh_keys_by_user.go
- nilerr: refactor GetAllPages pagination detection to avoid returning
  nil error when json.Unmarshal fails (intentional passthrough for
  non-paginated responses)
- .golangci.yml: replace deprecated linter names (vet -> govet,
  tenv -> usetesting)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-16 02:17:13 -04:00
parent 5b1dd07063
commit 39c8cf0b58
5 changed files with 46 additions and 43 deletions

View File

@@ -53,19 +53,19 @@ type ServerResourceModel struct {
HypervisorID types.Int64 `tfsdk:"hypervisor_id"`
// Optional (create)
Ipv4 types.Int64 `tfsdk:"ipv4"`
Storage types.Int64 `tfsdk:"storage"`
Memory types.Int64 `tfsdk:"memory"`
Cores types.Int64 `tfsdk:"cores"`
Traffic types.Int64 `tfsdk:"traffic"`
InboundNetworkSpeed types.Int64 `tfsdk:"inbound_network_speed"`
OutboundNetworkSpeed types.Int64 `tfsdk:"outbound_network_speed"`
StorageProfile types.Int64 `tfsdk:"storage_profile"`
NetworkProfile types.Int64 `tfsdk:"network_profile"`
DryRun types.Bool `tfsdk:"dry_run"`
AdditionalStorage1 types.Int64 `tfsdk:"additional_storage_1"`
Ipv4 types.Int64 `tfsdk:"ipv4"`
Storage types.Int64 `tfsdk:"storage"`
Memory types.Int64 `tfsdk:"memory"`
Cores types.Int64 `tfsdk:"cores"`
Traffic types.Int64 `tfsdk:"traffic"`
InboundNetworkSpeed types.Int64 `tfsdk:"inbound_network_speed"`
OutboundNetworkSpeed types.Int64 `tfsdk:"outbound_network_speed"`
StorageProfile types.Int64 `tfsdk:"storage_profile"`
NetworkProfile types.Int64 `tfsdk:"network_profile"`
DryRun types.Bool `tfsdk:"dry_run"`
AdditionalStorage1 types.Int64 `tfsdk:"additional_storage_1"`
AdditionalStorage1Profile types.Int64 `tfsdk:"additional_storage_1_profile"`
AdditionalStorage2 types.Int64 `tfsdk:"additional_storage_2"`
AdditionalStorage2 types.Int64 `tfsdk:"additional_storage_2"`
AdditionalStorage2Profile types.Int64 `tfsdk:"additional_storage_2_profile"`
// Optional (update-only)