Skip to content

Implemented the formatter change so short if/then/else can stay inline#737

Open
hemannt003 wants to merge 1 commit intostjude-rust-labs:mainfrom
hemannt003:sp03
Open

Implemented the formatter change so short if/then/else can stay inline#737
hemannt003 wants to merge 1 commit intostjude-rust-labs:mainfrom
hemannt003:sp03

Conversation

@hemannt003
Copy link

@hemannt003 hemannt003 commented Mar 19, 2026

Fixes #721

Implemented the formatter change so short if/then/else can stay inline when enabled, while wrapping still happens in postprocessing when line length exceeds the configured max.

Before submitting this PR, please make sure:

For external contributors:

  • You have read the contributing guide in its entirety.
  • You have not used AI on any parts of this pull request.
  • You have added a few sentences describing the PR here.
  • Your code builds clean without any errors or warnings.

For all contributors:

  • You have added tests (when appropriate).
  • You have added an entry in the CHANGELOG (when appropriate).
  • You have updated the README or other documentation to account for these changes (when appropriate).
  • You have made a PR to the next branch in the sprocket.bio repository (when appropriate).

For PRs containing lint rule changes:

  • You have updated any and all effected entries within RULES.md.
  • You have added a test case in crates/wdl-lint/tests/lints that covers every
    possible diagnostic emitted for the rule within the file where the rule
    is implemented.

@hemannt003 hemannt003 requested a review from a team as a code owner March 19, 2026 08:18
@hemannt003 hemannt003 requested a review from a-frantz March 19, 2026 08:18
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.

Allow short if/then/else expressions to remain on a single line

1 participant