Skip to content

refactor: split multi-line if-init statements for revive - #127

Merged
tenequm merged 1 commit into
mainfrom
fix/revive-multiline-if-init
Oct 7, 2026
Merged

tenequm merged 1 commit into
mainfrom
fix/revive-multiline-if-init

Conversation

@tenequm

@tenequm tenequm commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

golangci-lint 2.14.0's revive flags if-init statements that span lines
(multiline-if-init). Hoist the long call arguments and interface literals
so each init fits one line; behavior is unchanged.

golangci-lint 2.14.0's revive flags if-init statements that span lines
(multiline-if-init). Hoist the long call arguments and interface literals
so each init fits one line; behavior is unchanged.
@tenequm
tenequm merged commit 517c3fe into main Oct 7, 2026
9 checks passed
@tenequm
tenequm deleted the fix/revive-multiline-if-init branch October 7, 2026 11:28
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