Code formatter for Scala. Configurations are stored in the .scalafmt.conf…
Code formatter for Scala. Configurations are stored in the
.scalafmt.conf
file. More information: https://scalameta.org/scalafmt.
.scala
files in the current directory recursively:scalafmt
scalafmt --config {{path/to/.scalafmt.conf}} {{path/to/file_or_directory}} {{path/to/file_or_directory}} {{...}}
0
if all files respect the formatting style:scalafmt --config {{path/to/.scalafmt.conf}} --test
scalafmt --exclude {{path/to/file_or_directory}} {{...}}
scalafmt --config {{path/to/.scalafmt.conf}} --mode diff