Skip to content

Commit 4f6dc25

Browse files
authored
Style Google Whitespaces (#6202)
* Add whitespaces in the context of left braces to as it differs in 2 locations from IntelliJ * minimize configuration
1 parent 55a95b9 commit 4f6dc25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rewrite-java/src/main/resources/META-INF/rewrite/google-java-format.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ styleConfigs:
2525
- import static all other imports
2626
- <blank line>
2727
- import all other imports
28+
- org.openrewrite.java.style.SpacesStyle:
29+
# see https://google.github.io/styleguide/javaguide.html#s4.6.2-horizontal-whitespace
30+
beforeLeftBrace:
31+
arrayInitializerLeftBrace: true

0 commit comments

Comments
 (0)