Skip to content

ci(golang): gate the shared lint job on modernize#13

Merged
sebhoss merged 1 commit into
mainfrom
ci/modernize-lint
Jun 26, 2026
Merged

ci(golang): gate the shared lint job on modernize#13
sebhoss merged 1 commit into
mainfrom
ci/modernize-lint

Conversation

@sebhoss

@sebhoss sebhoss commented Jun 26, 2026

Copy link
Copy Markdown
Member

Add a modernize step that flags code which could adopt newer-Go idioms available at the module's go version (min/max, slices/maps, range-over-int, new(expr), …). Generated zz_generated.deepcopy.go is excluded — controller-gen owns it, so its maps.Copy suggestions are not actionable.

Add a modernize step that flags code which could adopt newer-Go idioms available
at the module's go version (min/max, slices/maps, range-over-int, new(expr), …).
Generated zz_generated.deepcopy.go is excluded — controller-gen owns it, so its
maps.Copy suggestions are not actionable.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
@sebhoss sebhoss merged commit 392a327 into main Jun 26, 2026
6 checks passed
@sebhoss sebhoss deleted the ci/modernize-lint branch June 26, 2026 15:32
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