Skip to content

Daxten/scalafmt

This branch is 1 commit ahead of, 5270 commits behind scalameta/scalafmt:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3910e5a · Mar 14, 2017
Mar 3, 2017
Dec 23, 2016
Mar 12, 2017
Mar 14, 2017
Mar 12, 2017
Mar 13, 2017
Mar 13, 2017
Mar 13, 2017
Mar 5, 2017
Mar 12, 2017
Mar 13, 2017
Dec 29, 2016
Mar 12, 2017
Mar 5, 2017
Mar 12, 2017
Mar 12, 2017
Sep 23, 2016
Mar 11, 2016
Mar 12, 2017
Mar 9, 2016
Mar 6, 2017
Mar 6, 2017
Dec 23, 2016
Mar 3, 2016
Mar 12, 2017
Dec 28, 2016
Mar 13, 2017
Mar 13, 2017

Repository files navigation

scalafmt

Build Status Build status Join the chat at https://gitter.im/olafurpg/scalafmt Latest version

Head over to the user docs for instructions on how to install scalafmt.

Quick help

  • Run all unit tests: sbt test
  • Run only formatting tests: core/testOnly org.scalafmt.FormatTests.
  • Write new formatting test: read this doc.
  • Build docs: sbt readme/run will create the docs, which you can open with open readme/target/scalatex/index.html. Docs are built with Scalatex.
  • Hack on IntelliJ plugin: see this doc.
  • Hack on scalafmt: see tutorial.
  • Hack on SBT plugin: run sbt scripted.
  • Run jmh benchmarks: ./bin/run-benchmarks.sh.
  • Run formatter on millions of lines of code: core/test:runMain org.scalafmt.FormatExperimentApp:
  • Debug performance: after each test run in FormatTests, a flamegraph report like this one is generated in target/index.html. I usually keep a browser tab open at localhost:3000/target/index.html along with this background process: browser-sync start --server --files "target/*.html". See Browsersync.
  • intellij/compile:compileIncremental failed? Run downloadIdea to download custom IntelliJ plugin. The download may take a while.

Tutorial

If you'd like to find out how to work on scalafmt, see this tutorial.

Team

The current maintainers (people who can merge pull requests) are:

An up-to-date list of contributors is available here: https://github.com/scalameta/scalafmt/graphs/contributors

We strive to offer a welcoming environment to learn, teach and contribute.

Acknowledgements

[JProfiler](http://www.ej-technologies.com/products/jprofiler/overview.html) generously supports scalafmt with its full-featured Java Profiler.

About

Code formatter for Scala

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 96.1%
  • Shell 3.7%
  • Other 0.2%