scalafmt
User documentation
Head over to the user docs for instructions on how to install scalafmt.
Developer documentation - contributing
core/testOnly org.scalafmt.FormatTests
: runs the fast, most relevant, unit tests.- After each run, a performance report is generated in
target/index.html
. I usually keep a browser tab open atlocalhost:3000/target/index.html
along with this background process:browser-sync start --server --files "target/*.html"
. See Browsersync.
- After each run, a performance report is generated in
core/testOnly org.scalafmt.FidelityTest
: runs the formatter on all files in this project.run-benchmarks.sh
script to run jmh benchmarks.core/test:runMain org.scalafmt.FormatExperimentApp
:- Uses
wget
to download a ~20mb tar (repos.tar.gz) that contains ~28.000 Scala source files from public Github repos, - untars with
tar
, - runs scalafmt on a subset of the files, specified in
FormatExperiment
. Runs various property based checks under timing constraints (around 10s per file), - prints summary report to console.
- Uses
- instructions for the tests are here.