google-java-format
google-java-format copied to clipboard
Reformats Java source code to comply with Google Java Style.
Rename the file [google-java-format-diff.py](https://github.com/google/google-java-format/blob/master/scripts/google-java-format-diff.py) to `google_java_format_diff.py` so that it can be imported as a module.
With v1.16.0, the Intellij plugin started automatically reformatting imports with no option to disable that. Before v1.16.0, it was possible to use custom import rules via Intellij settings, but these...
The Eclipse-Plugin has sometimes a problem when I call the formatter programatically inside Eclipse. I am using the Snippet from https://help.eclipse.org/latest/topic/org.eclipse.jdt.doc.isv/guide/jdt_api_codeformatter.htm to format a complete Java-File. I have created a...
Following the example of https://github.com/google/error-prone/issues/3803, we're considering removing support for running google-java-format on JDK 11. The new minimum supported JDK would be JDK 17 (the next LTS release after 11)....
The simplest example is this: ``` public class A { public void foo() { String a = """ lorem ipsum """; String b = """ lorem ipsum """; } }...
There seems to be an inconsistency in how long log statements are indented when they break across lines. See the example below. If there's a line break, I'd expect the...
continuation of https://github.com/google/google-java-format/issues/1147 ``` $ javac Test.java $ cat Test.java public class Test { public void check1(int x) { switch (x) { case 1: x = x + 1; /*...
https://google.github.io/styleguide/javaguide.html#s4.8.9-text-blocks > The opening """ of a text block is always on a new line. That line may either follow the same indentation rules as other constructs, or it may...
The following code fails to format when using the native version of the formatter. (The JVM version works fine.) ```java class Main { void test() { switch (test) { case...