google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

Reformats Java source code to comply with Google Java Style.

Results 223 google-java-format issues
Sort by recently updated
recently updated
newest added

- AOSP style, basic indent is 4. - class -> method -> main body, - java.util.stream.Stream - val name clarity often means long names Because of the above reasons, the...

https://github.com/google/google-java-format/blob/18f835849551f81d60d582300a0a3c585b5774b4/core/src/main/java/com/google/googlejavaformat/Doc.java#L404

Hello 👋 How to reproduce: 1. In a Java file, simply start writing a class name which require an import and is not imported yet (e.g. List) 2. Use the...

IntelliJ

Example output by `google-java-format` on a record: ```java public record MyRecord( @NotNull String firstName, String lastName, @NotEmpty List friends, @MyAnnotation( propA = "The brown fox jumps over the lazy cat......",...

When trying to use Tab to autocomplete a Github Copilot completion, google-java-format overrides and simply acts as if i pressed tab without copilot.

Trunk Check is a universal linter which integrates with a wide variety of linters and formatters, `google-java-format` included. We're big fans of `google-java-format` and figured that you might find our...

Tested release 1.15.0 with the following ``` public class Foo { private static final String foo = "\"aaaaaaaaaaaaaaaaaaaaa\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"," + "\"aaaaaaaaaaaaaaaaaaaaa\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"," + "\"aaaaaaaaaaaaaaaaaaaaa\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"," + "\"aaaaaaaaaaaaaaaaaaaaa\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"," + "\"aaaaaaaaaaaaaaaaaaaaa\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"aaaaaaaaaaaaaaaaaaaaa\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n"; } ``` google-java-format would...

Placing single-line or block comments before case statements in an enhanced switch causes them to be indented. This seems to be in violation of [4.8.6.1](https://google.github.io/styleguide/javaguide.html#s4.8.6-comments) Block comment style. Auto-formatted code:...