v3.3.2
Features
- Router: implement
align.beforeOpenParenXxxSite
(#3052) @kitbellew - FormatWriter: in SLC, insert space before non-
/
(#3051) @kitbellew - RedundantBraces: add noParams option to defnBodies (#3031) @kitbellew
Format scala3 while-do/if-then/for-do consistently
- Router: handle
for-do/yield
the same aswhile
(#3050) @kitbellew - FormatOps: unfold yield correctly and consistently (#3047) @kitbellew
- Router: preserve break after
while
ifkeep
(#3049) @kitbellew - Router: handle then and do similar to else/yield (#3037) @kitbellew
- FormatOps: use Option in indentAndBreakBeforeCtrl (#3048) @kitbellew
Scaladoc with embedded elements
- Scalameta: upgrade to 4.4.32 (scaladoc fixes) (#3054) @kitbellew
- FormatWriter: refactor scaladoc formatting, escape text a-la code fence (#3036) @kitbellew
- FormatWriter: do not start "```" on top line (part 7) (#3046) @kitbellew
- FormatWriter: pass indent parameter to scaladoc (part 6) (#3045) @kitbellew
- FormatWriter: reuse scaladoc formatTextAfterMargin (part 5) (#3044) @kitbellew
- FormatWriter: refactor formatting a code block (part 4) (#3043) @kitbellew
- FormatWriter: extract logic to terminate a MLC (part 3) (#3042) @kitbellew
- FormatWriter: remove appendWithMargin for scaladoc (part 2) (#3041) @kitbellew
- FormatWriter: refactor, extract Scaladoc format (part 1) (#3040) @kitbellew
Bug fixes
- Scalameta: upgrade to 4.4.33 (scala3 comment fix) (#3064) @kitbellew
- Router: observe source=keep even when binpacking (#3065) @kitbellew
- StyleMap: fix style.binPack.literalsMinArgCount (#3062) @kitbellew
- FormatOps: bugfixes to deal with ephemeral single-stat blocks with trailing comments (#3058) @kitbellew
- Router: indent, handle comma in repeated enum cases (#3057) @kitbellew
- Router: if format:off and NL, keep only NL splits (#3029) @kitbellew
Other changes
- StyleMap: include
new
as a simple literal expr (#3060) @kitbellew - Documentation: describe all literal arglist params (#3061) @kitbellew
- FileOps: support symlinked files or directories (#3055) @kitbellew
- Installation: clarify sbt plugin version (#3039) @kitbellew
- ScalafmtConfig: simplify check for beforeMultiline (#3038) @kitbellew
- RedundantBraces: rename some parameters, amend documentation (#3030) @kitbellew
- HasTests: avoid NPE for incomplete formatting (#3028) @kitbellew