Skip to content

zoonfafer/scalafmt

This branch is 8 commits behind scalameta/scalafmt:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b6c8678 · Mar 12, 2025
Feb 28, 2025
Jan 29, 2025
Mar 5, 2025
Mar 12, 2025
Nov 27, 2024
Feb 10, 2025
Feb 21, 2025
Feb 13, 2025
Mar 11, 2025
Feb 28, 2025
Feb 21, 2025
Feb 8, 2025
Sep 19, 2024
Feb 21, 2025
Mar 7, 2025
Mar 11, 2025
Apr 7, 2024
Apr 23, 2017
Jan 24, 2025
Dec 14, 2020
Sep 6, 2021
Apr 21, 2021
Mar 29, 2020
Mar 7, 2025
May 27, 2018
Feb 21, 2025
Mar 3, 2016
Sep 10, 2019
Feb 19, 2025
Jan 23, 2022
Apr 6, 2020
Nov 24, 2024
Mar 16, 2017
Mar 7, 2025
Jul 1, 2017
Dec 9, 2020

Repository files navigation

scalafmt

Build Status Build status Join the discord chat Latest version

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

Quick help

  • sbt compile or sbt core/compile (specific project).
  • Run all unit tests: sbt test
  • Run only formatting tests: tests/testOnly *FormatTests.
  • Write new formatting test: read this doc.
  • Build docs: See instructions on the site or locally at ./docs/contributing-website.md.
  • Hack on sbt plugin: run sbt scripted.
  • Run jmh benchmarks: ./bin/run-benchmarks.sh.
  • Run formatter on millions of lines of code: tests/test:runMain org.scalafmt.ScalafmtProps (slow, and requires a lot of memory/cpu)
  • 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.

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 generously supports scalafmt with its full-featured Java Profiler.

Releases

No releases published

Packages

No packages published

Languages

  • Scala 96.6%
  • Shell 1.5%
  • Java 0.7%
  • JavaScript 0.7%
  • CSS 0.4%
  • Standard ML 0.1%