Scalafmt v2.0.1
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:
- Return exit code 1 for
scalafmt --listif there are any files that require re-formatting #1474 (tanishiking) - dont uppercase long hex literal 0x prefix #1473 (stephennancekivell)
- Use openjdk8 instead of oraclejdk8 #1471 (tanishiking)
- do not cache for ever invalid configs #1467 (bjaglin)
- Add --list cli option #1459 #1466 (droptheplot)
- Update the release process document, and upgrade docusaurus #1452 (tanishiking)
- Update .gitignore for metals and bloop #1451 (tanishiking)
- Suppress cli output in case option was set #1449 (stremlenye)
- exclude dangling parens in methods with enabled verticalMultiline #1435 (darl)
- Prints out the paths of files subjected to formating before the beginning of formatting in debug mode #1422 (stremlenye)