Skip to content

Releases: scalameta/scalafmt

v3.0.0-RC4

31 May 15:43
Compare
Choose a tag to compare

Pull Requests

v3.0.0-RC3

18 May 09:53
Compare
Choose a tag to compare

Pull Requests

v3.0.0-RC2

29 Apr 09:49
206d4b5
Compare
Choose a tag to compare

Pull Requests

v3.0.0-RC1

15 Apr 16:43
Compare
Choose a tag to compare

Pull Requests

v2.7.5

16 Oct 23:21
Compare
Choose a tag to compare

Features

Bug fixes

v2.7.4

06 Oct 22:53
Compare
Choose a tag to compare

Bug fixes

  • FormatWriter: correct first line of docstrings for wrap=no (#2217) @kitbellew

v2.7.3

29 Sep 19:47
02391e5
Compare
Choose a tag to compare

Bug fixes

Dependency upgrades

Miscellaneous

v2.7.2

18 Sep 16:07
Compare
Choose a tag to compare

Bug fixes and improvements with rewrite rules

v2.7.1

14 Sep 18:32
Compare
Choose a tag to compare

Updates

  • Lambdas
  • Enumerators

Bug fixes

v2.7.0

08 Sep 15:24
caa9f71
Compare
Choose a tag to compare

Editions

CLI

In order to allow specifying a large number of files to the command-line tool, we now allow providing them via @file argument; this file will contain the names of all files and directories which would otherwise have been specified directly on the command line. A special case of @- is to refer to stdin.

  • Add support to expand command-line arguments with @ symbol (#2146) @olafurpg
  • Cli: add an option to read file names from stdin (#2162) @kitbellew

Ammonite

Consistent formatting of body of definitions and control expressions

Previously, there was a single parameter (newlines.alwaysBeforeMultilineDef) which allowed to force a line break after = if the body of a method occupied multiple lines.

In this release, this parameter is deprecated and replaced with another multivalued parameter; NB: to enable this transition, the default behaviour was changed from forcing a break to allowing a space.

Additionally, when a break is not forced, formatting of body in method definition, variable assignment, control expressions (if, for, while), case clauses has been standardized and controlled via the same parameters (with methods, for backwards compatibility, being optionally configured via a separate parameter).

Indentation of infix chains

Previously, indentation with infix chains was applied inconsistently, occasionally failing altogether. In this release, indentation has been made more consistent and applied universally, with parameters documented.

Formatting of lambdas and partial functions

Formatting of paren-enclosed case body as with braces

Rewrite rules

Miscellaneous

Dependency updates