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

@@ -16,8 +16,8 @@ linters:
- nilerr
- predeclared
- staticcheck
- tenv
- usetesting
- unconvert
- unparam
- unused
- vet
- govet