Skip to content

Scalafmt v2.4.0-RC1

Choose a tag to compare

@release-drafter release-drafter released this 01 Feb 16:12
1a09e1f

Edition 2020-01

Line breaks

Allow breaks after assignment

Screen Shot 2020-02-01 at 07 46 31

Preserve line breaks before single-line comments when bin-packing

Screen Shot 2020-02-01 at 07 48 35

Breaks within a method call if a long single-line comment follows

Screen Shot 2020-02-01 at 07 54 00

Preserve single-line formatting for if/try: fixed issues #271 #1002 #1043

Screen Shot 2020-02-01 at 08 15 13

Fix formatting for lambda functions in infix expressions:

Screen Shot 2020-02-01 at 08 07 43

Avoid line-too-long in lambda functions:

Screen Shot 2020-02-01 at 08 09 04

Rewrite rules

  • Abide by "no-format" tags when rewriting
  • Fix rewrite rules for infix expressions
  • Fix newline handling while rewriting, such as to preserve config-style formatting

Fixes

#271 #1002 #1043 #1413 #1506 #1547 #1592 #1624 #1631 #1633

Pull Requests

Dependency updates