GithubHelp home page GithubHelp logo

mohanaraosv / spotless Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diffplug/spotless

0.0 2.0 0.0 25.05 MB

Keep your code spotless

License: Apache License 2.0

Shell 0.05% Java 98.62% HTML 1.32%

spotless's Introduction

Spotless: Keep your code spotless

Travis CI Live chat License Apache

Spotless can format <java | kotlin | scala | sql | groovy | javascript | flow | typeScript | css | scss | less | jsx | vue | graphql | json | yaml | markdown | license headers | anything> using <gradle | maven | anything>.

Ideally, a code formatter can do more than just find formatting errors - it should fix them as well. Such a formatter is really just a Function<String, String>, which returns a formatted version of its potentially unformatted input.

It's easy to build such a function, but there are some gotchas and lots of integration work (newlines, character encodings, idempotency, and build-system integration). Spotless tackles those for you so you can focus on just a simple Function<String, String> which can compose with any of the other formatters and build tools in Spotless' arsenal.

Current feature matrix

Feature / FormatterStep plugin-gradle plugin-maven (Your build tool here)
generic.EndWithNewlineStep πŸ‘ πŸ‘ ⬜
generic.IndentStep πŸ‘ πŸ‘ ⬜
generic.LicenseHeaderStep πŸ‘ πŸ‘ ⬜
generic.ReplaceRegexStep πŸ‘ πŸ‘ ⬜
generic.ReplaceStep πŸ‘ πŸ‘ ⬜
generic.TrimTrailingWhitespaceStep πŸ‘ πŸ‘ ⬜
cpp.EclipseFormatterStep πŸ‘ πŸ‘ ⬜
groovy.GrEclipseFormatterStep πŸ‘ ⬜ ⬜
java.GoogleJavaFormatStep πŸ‘ πŸ‘ ⬜
java.ImportOrderStep πŸ‘ πŸ‘ ⬜
java.RemoveUnusedImportsStep πŸ‘ πŸ‘ ⬜
java.EclipseFormatterStep πŸ‘ πŸ‘ ⬜
kotlin.KtLintStep πŸ‘ πŸ‘ ⬜
markdown.FreshMarkStep πŸ‘ ⬜ ⬜
npm.PrettierFormatterStep πŸ‘ ⬜ ⬜
npm.TsFmtFormatterStep πŸ‘ ⬜ ⬜
scala.ScalaFmtStep πŸ‘ πŸ‘ ⬜
sql.DBeaverSQLFormatterStep πŸ‘ ⬜ ⬜
wtp.EclipseWtpFormatterStep πŸ‘ πŸ‘ ⬜
(Your FormatterStep here) ⬜ ⬜ ⬜
Fast up-to-date checking πŸ‘ ⬜ ⬜
Automatic idempotency safeguard πŸ‘ ⬜ ⬜

Acknowledgements

spotless's People

Contributors

nedtwigg avatar jbduncan avatar lutovich avatar fvgh avatar simschla avatar jlleitschuh avatar thc202 avatar baptistemesta avatar vmdominguez avatar youribonnaffe avatar ohorn avatar runningcode avatar matthiasbalke avatar alexvetter avatar ajoberstar avatar sormuras avatar eyalkaspi-delphix avatar chkpnt avatar gdecaso avatar joan38 avatar joshbrudnak avatar kengotoda avatar kvnxiao avatar schroedingerscode avatar cal101 avatar

Watchers

MohanaRao SV 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.