Skip to content

v2.7.0

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Sep 15:24
· 2160 commits to master since this release
caa9f71

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