Skip to content

Mark end regions by blank gaps - #117

Merged
russwyte merged 2 commits into
mainfrom
fmt/end-markers-by-blank-gap
Oct 25, 2026
Merged

russwyte merged 2 commits into
mainfrom
fmt/end-markers-by-blank-gap

Conversation

@russwyte

Copy link
Copy Markdown
Collaborator

The line-count rule was inserting end for on long comprehensions. End markers now follow blank gaps, scalafmt's implementation of scalameta/scalafmt#5064.

Scalafmt is 3.11.5.

Fors named only to avoid that marker are expressions again:

  • H2ConformanceSpecs: stored is (for ... yield exit).map
  • WhereGroupSpecs: res in "Query with is null in andWhere"
  • JsonIntegrationSpecs: res in "Option[Json[A]] nullable JSON column", and both t bindings in the generic Json[E] tests
  • UpsertSpecs: res in "doNothing ignores conflict"
  • PgSessionSpecs: counted in "take(10) of a million rows reads one cursor batch"

scalafmtCheckAll passed. Root compile passed. Test/compile also passed for core, coreJS, coreNative, docs, suite, and suiteJS, which hold the edited tests.

Scalafmt is 3.11.5. A long for with no blank line no longer picks up an end marker. Fors named only to avoid that marker are expressions again.
@russwyte
russwyte merged commit 7ffc509 into main Oct 25, 2026
15 checks passed
@russwyte
russwyte deleted the fmt/end-markers-by-blank-gap branch October 25, 2026 22:20
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