google-java-format
google-java-format copied to clipboard
Reformats Java source code to comply with Google Java Style.
I use [JHipster](https://www.jhipster.tech/) which generates a Spring Boot / Angular project for me. Now I don't want to format the generated code I never touch. That's why I need to...
If a `CODE_OPEN_TAG` token is followed by a `LITERAL` token, break before writing the `CODE_OPEN_TAG` token if writing it will result in us eating up the remainder of the current...
Re-adds the GJF version specification to the Eclipse plugin pom. This decouples the GJF version from the Eclipse plugin version. As a result, it is possible to increase the Eclipse...
To correct any violation of https://google.github.io/styleguide/javaguide.html#s4.1.1-braces-always-used Currently it looks like a code that is formatted like ``` java if (condition) do_something ``` would be formatted (after running the tool) as:...
If you happen to have a source file with a text block that has individual rows that are too long, like in the following example class: ``` public class Example...
I am unable to get the Eclipse plugin to work. I have reinstalled Eclipse, tried both plugin version 1.6 and 1.8. Eclipse version 2020.09. OpenJDK 11 is the system JRE/JDK....
I cp'd `google-java-format-eclipse-plugin_1.6.0.jar` to `/Applications/eclipse.kepler/dropins` but it doesn't show up either in the formatter dialog, or in the "Installed Software". It works on my other laptop, that is running Eclipse...
While I was typing IntelliJ showed a window with the following error: ``` 2021-06-18 15:48:09,626 [18722893] ERROR - plication.TransactionGuardImpl - Write-unsafe context! Model changes are allowed from write-safe contexts only....
I have a class that if I format it twice with google java formatter it will produce 2 different results. This is not what I would expect - I would...
In a few edge cases, we've found formatting not be idempotent and requiring multiple rounds of formatting before stabilizing. Here's an example: Input: ``` package foo; import java.util.Set; public class...