Search before asking
KubeRay Component
ci
Description
The Go 1.27 upgrade in #5188 temporarily disables the embedlit analyzer under modernize in .golangci.yml to keep the upgrade focused.
This issue tracks the code cleanup and re-enabling the analyzer after #5188 is merged, as requested in the review:
#5188 (comment)
Completion criteria:
Use case
Go 1.27 allows struct literals to initialize fields promoted from embedded structs directly. The embedlit analyzer identifies opportunities to simplify these initializations.
Re-enabling the check after the cleanup lets CI enforce this pattern and removes the temporary exception introduced by the upgrade.
Related issues
Are you willing to submit a PR?
Search before asking
KubeRay Component
ci
Description
The Go 1.27 upgrade in #5188 temporarily disables the
embedlitanalyzer undermodernizein.golangci.ymlto keep the upgrade focused.This issue tracks the code cleanup and re-enabling the analyzer after #5188 is merged, as requested in the review:
#5188 (comment)
Completion criteria:
embedlitdiagnostics while preserving existing behavior.embedlitand its temporary explanatory comments frommodernize.disable, keeping other settings unchanged.Use case
Go 1.27 allows struct literals to initialize fields promoted from embedded structs directly. The
embedlitanalyzer identifies opportunities to simplify these initializations.Re-enabling the check after the cleanup lets CI enforce this pattern and removes the temporary exception introduced by the upgrade.
Related issues
newexprafter the Go 1.26 upgrade.Are you willing to submit a PR?