Skip to content

apply go fix - #23201

Merged
AskAlexSharov merged 1 commit into
mainfrom
alex/go_fix_37
Aug 12, 2026
Merged

apply go fix#23201
AskAlexSharov merged 1 commit into
mainfrom
alex/go_fix_37

Conversation

@AskAlexSharov

Copy link
Copy Markdown
Collaborator

go fix ./... reports exactly three suggested fixes across the repo, applied here verbatim.

file fix
execution/protocol/rules/aura/aura.go for i := 0; i < len(epochSet); i++for i := range epochSet
common/log/v3/log_test.go string += in a loop → strings.Builder
node/app/event/eventbus_test.go reflect.TypeOf(cb) on a declared var → reflect.TypeFor[...]()

Only the aura change is production, and it is inside a fmt.Printf block gated on DEBUG_LOG_FROM.

make lint does not report these even though modernize is enabled repo-wide (the only exclusion is _grpc.pb.go): golangci-lint bundles its own analyzer set, which lags the one shipped with the toolchain. So go fix -diff ./... is worth running periodically — it sees fixes our lint structurally cannot.

go fix reports three suggested fixes across the repo: a range loop in
aura's debug print, a strings.Builder for concatenation in a loop, and
reflect.TypeFor in place of reflect.TypeOf on a declared variable.

golangci-lint has modernize enabled but bundles an older analyzer set
than the toolchain, so these are not reported by make lint.
@AskAlexSharov AskAlexSharov changed the title common/log, execution/protocol/rules/aura, node/app/event: apply go fix apply go fix Aug 12, 2026
@AskAlexSharov
AskAlexSharov added this pull request to the merge queue Aug 12, 2026
Merged via the queue into main with commit 3236196 Aug 12, 2026
134 checks passed
@AskAlexSharov
AskAlexSharov deleted the alex/go_fix_37 branch August 12, 2026 07:00
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.

2 participants