sbt / sbt-java-formatter

An sbt plugin for formating Java code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace impl with Google`s google-java-format

ignasi35 opened this issue · comments

Current implementation of this plugin uses an eclipse library and XML file to setup and apply the formatting rules.

Instead, that impl could be replaced with Google's google-java-format which, despite not being configurable and enforce Google Java Style , seems to be maintained and integrates with IntelliJ and Eclipse alike.

/cc @raboof @TimMoore

Not configurable at all?

We specifically use 2 spaces in java docs in order to fit the snippets in similar amount of lines as scala, esp. in docs -- otherwise the more "functional" snippets become crazy nested.

@ktoso Google knows better you know...

Who am I to argue with the corporate overlords ;-)

Anything that works IMHO... currently we don't use this one in Akka but we should though

@ktoso incidentally the google style also indents blocks by 2 spaces ;)

Yesssss!!!! No other requirements, do it! :D