v3.8.0
Features
- ConvertToNewScala3Syntax: use the new granular parameter (#3735) @kitbellew
- #3712
- AvoidInfixSettings: use scalatest ops in test only (#3739) @kitbellew
- AvoidInfixSettings: relax
forSbtOpt
append rule (#3737) @kitbellew - ProjectFiles: detect if source is test in Layout (#3738) @kitbellew
- RewriteSettings: rename
forSbt
toforSbtOpt
(#3719) @kitbellew - AvoidInfixSettings: refactor defaults (#3718) @kitbellew
- AvoidInfixSettings: add
behavior.of
to default (#3711) @kitbellew - AvoidInfixSettings: consolidate AvoidInfix params (#3717) @kitbellew
- StandardProjectLayoutTest: rename to fix typo (#3716) @kitbellew
- ProjectFiles: shorten len in recursive getLang (#3715) @kitbellew
- ProjectFiles: implement Layout.withLang (#3714) @kitbellew
- ProjectFiles: refactor getting parent dirs (#3713) @kitbellew
- NeverInfixPattern: allow to match lhs as well (#3705) @kitbellew
- StandardProjectLayoutTest: add tests (#3706) @kitbellew
- AbsoluteFile: add
apply(String*)
(#3708) @kitbellew - NeverInfixPattern: implement own matching method (#3704) @kitbellew
- AvoidInfix: add tests for
of
(#3703) @kitbellew - NeverInfixPattern: rename from ambiguous
Pattern
(#3702) @kitbellew - Regex: use pattern.matcher.find, not findFirstIn (#3701) @kitbellew
Bug fixes
- FormatOps: fix fewer-braces lambda argument (#3782) @kitbellew
- Scalameta: update to 4.9.0 (#3781) @kitbellew
- Contains a number of parsing and interface fixes
- TreeOps: define
SingleArgInBraces
tree matcher (#3776) @kitbellew
- RedundantBraces: remove inner braces, not outer (#3780) @kitbellew
- FormatOps: fix
functionExpire
when rewritten (#3773) @kitbellew - Use Term.FunctionTerm where Term.Function was used (#3771) @kitbellew
- Use an sbt-scalafmt badge that shows the actual latest version (#3769) @taig
- FormatOps: force NL for non-single-expr in finally (#3761) @kitbellew
- RedundantParens: exclude case of trailing commas (#3750) @kitbellew
- RewriteTrailingCommas/RedundantParens: collaborate (#3760) @kitbellew
- TreeOps: relax when trailing comma paren possible (#3755) @kitbellew
- FormatOps: set indent correctly for enclosed body (#3754) @kitbellew
- Add tests with trailing commas in tuple (#3759) @kitbellew
- FormatOps: in getArgs, optionally return Nil (#3756) @kitbellew
- FormatTokensRewrite: claim current token as well (#3753) @kitbellew
- FormatTokensRewrite: create Session, pass around (#3752) @kitbellew
- FormatOps: outindent after fewer braces in infix (#3740) @kitbellew
- Scalameta: update to v4.8.15 (#3741) @kitbellew
- bugfix: Show exception from path matcher correctly (#3729) @tgodzik
- FormatWriter: fix end marker handling (#3734) @kitbellew
Miscellaneous
- FormatOps: inline
opensConfigStyle{,Classic}
(#3784) @kitbellew - FormatOps: getMustDangleForTrailingCommas(Token) (#3783) @kitbellew
- RedundantBraces: processBlock never called on
}
(#3779) @kitbellew - RedundantBraces: add
canRewriteXyzWithParens
(#3778) @kitbellew - RedundantBraces: extract method checking line span (#3777) @kitbellew
- FormatWriter: check stats in top-level handling (#3775) @kitbellew
- TreeOps: use DRY in checking function in braces (#3774) @kitbellew
- TreeOps: add method
isParentAnApply
(#3772) @kitbellew - FormatTests: improve idempotency and other errors (#3770) @kitbellew
- FormatTests: check AST only if result is parsable (#3758) @kitbellew
- FormatTests: ease check when test fails to parse (#3757) @kitbellew
- FormatTokens: add prevNonCommentSameLineBefore (#3751) @kitbellew
- FormatTests: improve asserting idempotency failure (#3736) @kitbellew
- Docs: increase
maxColumn
to showcase alignment (#3733) @kitbellew - improvement: Warn users not to use an example config without discussion (#3710) @tgodzik
Depedency updates
- Update mdoc, mdoc-parser, sbt-mdoc to 2.5.2 (#3768) @scalameta-bot
- Update sbt-jmh to 0.4.7 (#3749) @scalameta-bot
- Update sbt to 1.9.8 (#3748) @scalameta-bot
- Update sbt-scalajs to 1.15.0 (#3747) @scalameta-bot
- Bump actions/download-artifact from 3 to 4 (#3742) @dependabot
- Update scalafmt-core to 3.7.17 (#3726) @scalameta-bot
- Update mdoc-parser to 2.5.1 (#3725) @scalameta-bot
- Update mdoc, sbt-mdoc to 2.5.1 (#3724) @scalameta-bot
- Update sbt-assembly to 2.1.5 (#3723) @scalameta-bot
- Bump actions/setup-java from 3 to 4 (#3721) @dependabot