scalafmt

Code formatter for Scala

  • 所有者: scalameta/scalafmt
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

scalafmt

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

User documentation

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.

主要指标

概览
名称与所有者scalameta/scalafmt
主编程语言Scala
编程语言Scala (语言数: 9)
平台
许可证Apache License 2.0
所有者活动
创建于2015-11-02 21:34:40
推送于2025-07-04 04:09:59
最后一次提交
发布数210
最新版本名称v3.9.8 (发布于 )
第一版名称v0.1.0-RC0 (发布于 2016-03-03 18:57:17)
用户参与
星数1.5k
关注者数31
派生数285
提交数6.6k
已启用问题?
问题数1544
打开的问题数9
拉请求数3140
打开的拉请求数6
关闭的拉请求数183
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?