v2.6.2
This release adds several fixes to handling of docstrings and comments, and some documentation.
One of the fixes addresses the long-standing #1334 (indentation of select chain interrupted by a comment) when newlines.source = classic
. There's a new parameter (see https://scalameta.org/scalafmt/docs/configuration.html#optinencloseclassicchains).
Pull Requests
- Router: merge classic select chain rule with other (#2067) @kitbellew
- ScalafmtDynamic: throw once if can't resolve config (#2065) @kitbellew
- Router: indent comment before first select (#2066) @kitbellew
- FormatOps: method to check classic select chain (#2061) @kitbellew
- Policy: preserve original policies and ranges for control (#2060) @kitbellew
- TokenOps: no blank line for scaladoc in expression (#2047) @kitbellew
- Router: keep blank line in empty case clause body (#2045) @kitbellew
- FormatWriter: single-character one-line scaladoc (#2046) @kitbellew
- Router: break between comma and multiline comments (#2048) @kitbellew
Documentation
- Documentation: describe optIn.configStyleArguments, clarify optIn.breaksInsideChains (#2068) @kitbellew
- Remove reference to binPack.parentConstructors being a boolean (#2049) @emma-burrows
- clarify how
.scalafix.conf
& the CLI binary versions relate (#2040) @bjaglin
Build
- Dockerize (#2059) @gurinderu
- Add build with musl libc (#2041) @gurinderu
Dependencies
- Upgrade the scalafmt binary to 2.6.1 (#2064) @kitbellew
- Dependency updates (#2057) @poslegm
- Update scalameta, testkit to 4.3.17 (#2055) @scala-steward
- Update sbt-mdoc to 2.2.3 (#2053) @scala-steward
- Update sbt to 1.3.13 (#2052) @scala-steward
- Update sbt-native-packager to 1.7.3 (#2051) @scala-steward
- Update sbt-assembly to 0.15.0 (#2050) @scala-steward