v3.2.2
Features
- Documentation: note binpack/dangling if !cfgstyle (#2985) @kitbellew
- Router: use dangle for binPack when not cfgstyle (#2979) @kitbellew
- Router: use danglingParens for assign and src=keep (#2966) @kitbellew
- ScalafmtConfig: set default infix exclude for sbt (#2964) @kitbellew
- Router: handle !annotationNewlines for source=keep (#2961) @kitbellew
- FormatWriter: add braces if span exceeds threshold (#2953) @kitbellew
- AlignToken: include
EnumCase
forextends
(#2957) @kitbellew - FormatWriter: format
@usecase
tag on one line (#2944) @kitbellew - GitOps: do not mask exceptions, propagate instead (#2943) @kitbellew
Fixes
- Router: indent comment before select chain break (#2986) @kitbellew
- TreeExtractors: use Type.Apply in Type.With chain (#2984) @kitbellew
- FormatWriter: fix column when wrapping comments (#2978) @kitbellew
- scala3 rewrite: do not rewrite _* unless bind (#2975) @kitbellew
- Router: keep rhsOptimalToken within Term.Apply (#2974) @kitbellew
- Router: don't indent binPack single-arg assign (#2967) @kitbellew
- FormatWriter: fix alignment for incorrect
//
pos (#2959) @kitbellew - FormatWriter: ignore mods to align definitions (#2958) @kitbellew
- Router: break before catch/finally on wrong brace (#2954) @kitbellew
- Router: handle
for { ... } expr
(#2952) @kitbellew - FormatOps: single-line infix until op, not lhs (#2951) @kitbellew
- Router: add indent to for-yield with comments (#2948) @kitbellew
- Router: handle try/catch/finally without braces (#2947) @kitbellew
- FormatOps: keep newline after comment in body (#2949) @kitbellew
- InputMethod: original string could be empty (#2941) @kitbellew
Other changes
- ScalafmtConfig: no dangling parens for scala.js (#2976) @kitbellew
- DanglingParentheses: obtain tuple or call site (#2973) @kitbellew
- DanglingParentheses: use shortcut values (#2970) @kitbellew
- Router: partial undo on: penalize newlines last (#2968) @kitbellew
- Router: penalize newlines last, after forcing one (#2965) @kitbellew
- PolicyOps: move some policies from FormatOps (#2963) @kitbellew
- ScalafmtDynamicError: somewhat clarify messages (#2960) @kitbellew
- FormatWriter: minor refactor in alignment code (#2956) @kitbellew
- RewriteScala3Settings: minor refactor, add default (#2945) @kitbellew
- FormatWriter: mark removed locations differently (#2942) @kitbellew
- sbt-scalafmt docs: describe
scalafmtFilter
(#2937) @kitbellew
Dependencies
- Update scalatags to 0.11.0 (#2980) @scala-steward
- Update sbt-scalajs to 1.8.0 (#2981) @scala-steward
- Update sbt to 1.5.8 (#2982) @scala-steward
- Update sbt-scalafmt to 2.4.5 (#2983) @scala-steward
- Dependencies: update scalameta to v4.4.31 (#2946) @kitbellew