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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?