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

@@ -32,8 +32,8 @@ type SSHKeysByUserDataSource struct {
// SSHKeysByUserDataSourceModel describes the data source data model.
type SSHKeysByUserDataSourceModel struct {
UserID types.Int64 `tfsdk:"user_id"`
Results types.Int64 `tfsdk:"results"`
UserID types.Int64 `tfsdk:"user_id"`
Results types.Int64 `tfsdk:"results"`
SSHKeys []SSHKeyByUserItemModel `tfsdk:"ssh_keys"`
}