-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Organize module imports according to Google style (#281)
Following PR #273 * Feature: Organize module imports according to Google style * add empty newline at the end of modules files
- Loading branch information
1 parent
d239d91
commit 1939add
Showing
12 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
|
||
// uses | ||
/*a*/uses /*b*/fr.soat.vendinga/*a*/./*b*/machine.services.DrinksService/*a*/;/*b*/ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,4 +59,4 @@ | |
another, | ||
again, | ||
averyveryveryveryveryveryveryveryveryveryverylongname; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...rettier-plugin-java/test/unit-test/package_and_imports/moduleWithMixedImports/_input.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import something.Different; | ||
import java.utils.*;;; | ||
import abc.def.Something; | ||
import abc.def.Another;;; | ||
import abc.def; | ||
import static abc.def; | ||
import static something.Different; | ||
import static java.utils.*;;; | ||
import static abc.def.Something; | ||
import static abc.def.Another;;; | ||
import one.last;;; | ||
|
||
module my.module {} |
14 changes: 14 additions & 0 deletions
14
...ettier-plugin-java/test/unit-test/package_and_imports/moduleWithMixedImports/_output.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import static abc.def; | ||
import static abc.def.Another; | ||
import static abc.def.Something; | ||
import static java.utils.*; | ||
import static something.Different; | ||
|
||
import abc.def; | ||
import abc.def.Another; | ||
import abc.def.Something; | ||
import java.utils.*; | ||
import one.last; | ||
import something.Different; | ||
|
||
module my.module {} |
3 changes: 3 additions & 0 deletions
3
...s/prettier-plugin-java/test/unit-test/package_and_imports/moduleWithNoImports/_input.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
|
||
module my.module {} |
1 change: 1 addition & 0 deletions
1
.../prettier-plugin-java/test/unit-test/package_and_imports/moduleWithNoImports/_output.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module my.module {} |
8 changes: 8 additions & 0 deletions
8
...plugin-java/test/unit-test/package_and_imports/moduleWithOnlyNonStaticImports/_input.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import something.Different; | ||
import java.utils.*;;; | ||
import abc.def.Something; | ||
import abc.def.Another;;; | ||
import abc.def; | ||
import one.last;;; | ||
|
||
module my.module {} |
8 changes: 8 additions & 0 deletions
8
...lugin-java/test/unit-test/package_and_imports/moduleWithOnlyNonStaticImports/_output.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import abc.def; | ||
import abc.def.Another; | ||
import abc.def.Something; | ||
import java.utils.*; | ||
import one.last; | ||
import something.Different; | ||
|
||
module my.module {} |
8 changes: 8 additions & 0 deletions
8
...er-plugin-java/test/unit-test/package_and_imports/moduleWithOnlyStaticImports/_input.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
import static abc.def; | ||
import static something.Different; | ||
import static java.utils.*;;; | ||
import static abc.def.Something; | ||
import static abc.def.Another;;; | ||
|
||
module my.module {} |
7 changes: 7 additions & 0 deletions
7
...r-plugin-java/test/unit-test/package_and_imports/moduleWithOnlyStaticImports/_output.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import static abc.def; | ||
import static abc.def.Another; | ||
import static abc.def.Something; | ||
import static java.utils.*; | ||
import static something.Different; | ||
|
||
module my.module {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters