chore: re-enable golangci-lint checks and fix violations#3755
Merged
dims merged 1 commit intogoogle:masterfrom Dec 3, 2025
Merged
chore: re-enable golangci-lint checks and fix violations#3755dims merged 1 commit intogoogle:masterfrom
dims merged 1 commit intogoogle:masterfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-enable staticcheck linters that were disabled in a previous commit and fix all resulting violations:
Keep disabled: ST1003 (naming would break public API), ST1020/ST1021/ST1022 (comment format - too many issues, not worth the churn).