Skip to content

modernize: various cleanups - #6791

Merged
thaJeztah merged 9 commits into
docker:masterfrom
thaJeztah:modernize
Feb 11, 2026
Merged

modernize: various cleanups#6791
thaJeztah merged 9 commits into
docker:masterfrom
thaJeztah:modernize

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Using the modernize tool; https://pkg.go.dev/golang.org/x/tools@v0.42.0/go/analysis/passes/modernize

I skipped the omitzero one for now, as I want to look at some of its changes.

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

 go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -rangeint -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
 go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -minmax -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
 go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -mapsloop -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
 go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -stringscut -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
 go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -testingcontext -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
 go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -reflecttypefor -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
 go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -stringsseq -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
 go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -slicescontains -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
 go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -fmtappendf -fix ./...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztahthaJeztah added this to the 29.2.2 milestone Feb 11, 2026
@thaJeztahthaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Feb 11, 2026
@codecov-commenter

Copy link
Copy Markdown

@thaJeztah
thaJeztah merged commit 3d62a7c into docker:masterFeb 11, 2026
111 of 113 checks passed
@thaJeztah
thaJeztah deleted the modernize branch February 11, 2026 15:41
@thaJeztahthaJeztah modified the milestones: 29.2.2, 29.3.0Mar 2, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactorPR's that refactor, or clean-up codestatus/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@thaJeztah@codecov-commenter@vvoland