Skip to content

Conversation

@dims
Copy link
Collaborator

@dims dims commented Dec 3, 2025

Re-enable staticcheck linters that were disabled in a previous commit and fix all resulting violations:

  • Remove deprecated // +build lines (23 files) - only //go:build needed
  • Fix ST1005: lowercase error strings (24 issues across multiple files)
  • Fix ST1016: consistent receiver names in collector/util.go
  • Fix ST1023: remove redundant type in variable declaration

Keep disabled: ST1003 (naming would break public API), ST1020/ST1021/ST1022 (comment format - too many issues, not worth the churn).

Re-enable staticcheck linters that were disabled in a previous commit
and fix all resulting violations:

- Remove deprecated // +build lines (23 files) - only //go:build needed
- Fix ST1005: lowercase error strings (24 issues across multiple files)
- Fix ST1016: consistent receiver names in collector/util.go
- Fix ST1023: remove redundant type in variable declaration

Keep disabled: ST1003 (naming would break public API), ST1020/ST1021/ST1022
(comment format - too many issues, not worth the churn).

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@dims dims merged commit 9ad7b85 into google:master Dec 3, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant