-
Eventually it was clear that google-java-format was pulling ahead, and it was clear that the primary reason for that was The Rectangle Rule -- a principle I'd vomited forth one day that somehow had gone the distance. Structure-revealing code turns out to be readable code, and our users kept preferring it.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
I don't have personal experience with it, but there is the palantir-java-format: https://github.com/palantir/palantir-java-format
-
You just need to have the desired Format rules, like https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml
-
I use Spotless but it’s not as opiniotated as Prettier or Black
-
I like square’s java code style for intellij, https://github.com/square/java-code-styles, probably there’s a way to run these at the terminal
-
Prettier has support for Java. https://github.com/jhipster/prettier-java
-
https://github.com/spotify/fmt-maven-plugin (formerly coveo) both to format before commit and to check on ci that the formatting is correct.