Skip to content

v2.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Jun 01:11

Major changes

This release is generally dedicated to non-Scala features.

Scaladoc and comments

We are introducing scaladoc and comment formatting changes in this version. Please see
https://scalameta.org/scalafmt/docs/configuration.html#docstrings and
https://scalameta.org/scalafmt/docs/configuration.html#comment-processing

Some related pull requests:

Scala embedded in XML

To modify formatting of scala code within XML, see https://scalameta.org/scalafmt/docs/configuration.html#xmlliteralsassumeformatted

Line overflow

If it's desirable to avoid breaking some very long lines if they will exceed the maxColumn limit even with a newline, see https://scalameta.org/scalafmt/docs/configuration.html#newlinesavoidforsimpleoverflow

CLI

When running the scalafmt command-line tool, if one specified any Scala files explicitly, they would be formatted regardless of project filters specified in .scalafmt.conf.

Here, we introduce a new CLI option --respect-project-filters to modify this behaviour.

Other features

Idempotence fixes

Bug fixes

Dependency updates