Skip to content

v2.5.0-RC1

Choose a tag to compare

@github-actions github-actions released this 15 Apr 16:44

TL;DR

This release candidate may be unstable but we will be grateful for early adoption and bug reports. More detailed release notes coming soon with stable release.

Migration Guide

In this release changed default formatting of hex literals and literals in scientific notation. Currently hex digits and e symbol will lowercased. More details is in the documentation. If you don't want large diff after scalafmt update, you can set

literals.hexDigits=unchanged
literals.scientific=unchanged

newlines.alwaysBeforeMultilineDef may seem too aggressive now. You can disable it if you don't like newlines in diff newlines.alwaysBeforeMultilineDef=false.

Usage Improvements

Formatting Improvements

Bugfixes

  • Fixed AST changes after formatting variant types with symbolic name (#1762) @poslegm
  • Router bugfix: extend line break past infix for any block (#1766) @kitbellew
  • Router bugfix: regression in statement/comments (#1854) @kitbellew
  • "// format: off" enabled for comments, literals, etc. (#1773) @poslegm
  • Fixed contradiction between blankLineBeforeDocstring name and value (#1768) @poslegm
  • Fixed newlines on NewAnonymous with empty arguments lambda (#1833) @poslegm
  • Fixed alignment overriding (#1869) @poslegm

Documentation

Build and Code Health

Dependency Updates