Skip to content

Scalafmt v2.0.1

Choose a tag to compare

@tanishiking tanishiking released this 12 Aug 14:12
f1a6533

This release contains some new features and fixes for regressions.
Full Changelog

New features

--list option
When you want to check if your files are formatted, you can run scalafmt with the --list flag. This will output a list of unformatted files if any.

$ scalafmt --list

if some of the files require re-formatting, scalafmt print the list of those files and return exit code 1.

src/main/scala/file1.scala
src/main/scala/file1.scala

Merged pull requests: