chore: bump golangci-lint to v2.11.4 and enable additional linters#686
Merged
chore: bump golangci-lint to v2.11.4 and enable additional linters#686
Conversation
vladbologa
approved these changes
May 6, 2026
Update golangci-lint from v2.7.2 to v2.11.4 (adds Go 1.26 support). Update CI workflow to read Go version from go.mod instead of hardcoding 1.21. Bump GitHub Actions to current versions and add new linters to disabled list. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Marcin Owsiany <porridge@redhat.com>
Enable arangolint, depguard, godoclint, iotamixing, unqueryvet (no issues), and embeddedstructfieldcheck (fixed 4 missing blank lines after embedded fields). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Marcin Owsiany <porridge@redhat.com>
…led linters Enable godot (comments must end in a period) and fix all comments. Enable inamedparam (interface methods must have named parameters) and add parameter names to DockerClient and Logger interfaces. Add cyclop and depguard back to the disabled list. Add issue-count summary comments to all disabled linters. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Marcin Owsiany <porridge@redhat.com> # Conflicts: # internal/kubernetes/wait.go
Replace traditional C-style for loops with Go 1.22+ integer range syntax. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Marcin Owsiany <porridge@redhat.com>
Signed-off-by: Marcin Owsiany <porridge@redhat.com>
1d02bab to
3577d7b
Compare
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.
What this PR does / why we need it:
Bumps golangci-lint from v2.7.2 to v2.11.4 (adds Go 1.26 support, fixes
panic: file requires newer Go version go1.26error). Updates CI workflow to read Go version fromgo.modinstead of hardcoding 1.21 and bumps actions to v4/v5.Enables 9 additional linters that pass with zero or minimal fixes: arangolint, depguard, embeddedstructfieldcheck, godoclint, godot, inamedparam, intrange, iotamixing, unqueryvet.
Annotates all 31 remaining disabled linters with issue-count summary comments.