Skip to content

Scalafmt v2.4.0-RC2

Choose a tag to compare

@release-drafter release-drafter released this 09 Feb 15:58

Edition 2020-01

Formatting and rewrite of single-line curly lambdas

Allow curly lambdas to format on a single line

Screen Shot 2020-02-09 at 07 34 56

RedundantBraces: Replace inner braces and parens with outer braces for single-line lambdas (previously, only multiline)

Screen Shot 2020-02-09 at 07 46 31

RedundantBraces: Format single-line curly lambdas using parens

Screen Shot 2020-02-09 at 07 41 55

Other apply and init rewrites

RedundantParens: Remove parens around an apply of block

Screen Shot 2020-02-09 at 07 44 12

RedundantBraces: Remove braces around an apply argument

Screen Shot 2020-02-09 at 07 51 08

RedundantBraces: Remove braces around a single-statement lambda in constructors

Screen Shot 2020-02-09 at 07 52 13

Don't force break before parameters of lambda as the only constructor argument

Screen Shot 2020-02-09 at 07 56 17

Fixes

#965 #1027 #1246 #1321

Pull Requests

Dependency updates