v2.5.1
Bug fixes
- support non-default dialects (
Scala211
,Scala212
,Scala213
etc.) - add space before lambda in
if (...)(x, y) => ...
- don't align multiline expressions separated by a blank line
- don't remove parentheses around an infix with a line break before the operator
Pull Requests
- FormatWriter: flush alignment blocks on blank line (#1943) @kitbellew
- Discord link fixed (#1942) (#1946) @poslegm
- TreeOps: require space before
(
in function (#1944) @kitbellew - ScalafmtRunner: fix handling of trait "extends" (#1940) @kitbellew
- Changelog for 2.5.0 (#1941) @poslegm
- RedundantParens: may not be redundant around infix (#1938) @kitbellew
- ScalafmtConfig: see if dialect has trailing commas (#1939) @kitbellew
- FormatWriter: simplify two regular expressions; fix pipe char bug (#1936) @LeeTibbert