v3.3.1
Features
- FormatOps: ignore end marker for ctrl body purpose (#3023) @kitbellew
- RedundantBraces: rewrite
val
/var
/macro
, too (#3022) @kitbellew - FormatWriter: replace single-line mlc with slc (#2997) @kitbellew
Comment handling fixes
- Router: treat multi-line comment before NL as SLC (#3016) @kitbellew
- Router: do not attach comma after a comment (#3003) @kitbellew
- Router: attach/detach comment to comma as needed (#3002) @kitbellew
- Split: centralize noIndent handling (#3000) @kitbellew
- Router: do not detach or attach comment to comma (#2995) @kitbellew
Binpack handling fixes
- Router: binpack defn single-line to avoid overflow (#3010) @kitbellew
- Router: apply infix indent for single-arg binpack (#2996) @kitbellew
- Router: fix the indentCallSiteOnce functionality (#2994) @kitbellew
Rewrite safety fixes
- FormatOps: get rewritten tree head and last safer (#3020) @kitbellew
- FormatTokens: use to access tree head/last tokens (#3017) @kitbellew
Overflow fixes
- State: keep explicit penalty to detect overflow (#3014) @kitbellew
- BestFirstSearch: improve active overflow detection (#3012) @kitbellew
- State: fix overflow of trailing comments (#3011) @kitbellew
Other bug fixes
- FormatOps: remove empty outer blocks in ctrl body (#3021) @kitbellew
- FormatOps: consider infix case body as top level (#3018) @kitbellew
- Router: fix for-do like while-do before (#3015) @kitbellew
- FormatWriter: fix indentation detection logic (#3008) @kitbellew
- FormatOps: fix optional braces in
if/while
cond (#3007) @kitbellew - Router: check for syntax newlines in case SLB (#3004) @kitbellew
- FormatOps: in getApplyArgs, recognize infix rhs (#3001) @kitbellew
Other changes
- Bump actions/download-artifact from 2.0.10 to 2.1.0 (#3025) @dependabot
- FormatOps: set space/newline splits on diff lines (#3019) @kitbellew
- PolicyOps: create types of forced-break policies (#3009) @kitbellew
- FormatOps: swtich to the shorthand T for Token (#2999) @kitbellew
- Decision: centralize filtering newline splits (#2998) @kitbellew
- Documentation: add new
sbt-scalafmt
parameters (#2989) @kitbellew