GithubHelp home page GithubHelp logo

nkouevda / scalafmt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scalameta/scalafmt

0.0 3.0 0.0 5.67 MB

Code formatter for Scala

Home Page: http://scalameta.org/scalafmt

License: Apache License 2.0

Standard ML 0.17% Shell 2.29% Scala 95.77% CSS 0.61% JavaScript 1.15% HTML 0.01% PowerShell 0.01%

scalafmt's Introduction

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

  • sbt compile on a clean machine will fail to compile the scalafmt-intellij project.
    • if you plan to develop the intellij plugin, run downloadIdea first to fetch the IntelliJ SDK (~600mb).
    • or, run sbt test 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 IntelliJ plugin: see this doc.
  • 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.
  • intellij/compile:compileIncremental failed? Run downloadIdea to download custom IntelliJ plugin. The download may take a while.

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.

scalafmt's People

Contributors

olafurpg avatar gabro avatar mads-hartmann avatar pjrt avatar vovapolu avatar lorandszakacs avatar tanishiking avatar dwijnand avatar ysusuk avatar japgolly avatar caoilte avatar iantabolt avatar slavaschmidt avatar cb372 avatar stefanobaghino avatar lloydmeta avatar jiminhsieh avatar daxten avatar yln avatar hntd187 avatar mpociecha avatar dguo-coursera avatar masseguillaume avatar paradigmsort avatar ssaavedra avatar melrief avatar nightscape avatar maximn avatar mmatloka avatar muxanick avatar

Watchers

James Cloos avatar Nikita Kouevda avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.