-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prettify on a copy of repositories * add boolean case for primaryPrefix * add Semicolon case for classMemberDeclaration * fix case inferredLambdaParameter * fix forInit case commas not printed * fix annotationTypeBody mapVisit instead of visit * fix classLiteralSuffix not printer Squares * add repositories to test * rename repository test folder * update gitignore * fix no output lerna run test until end exec * add java design pattern repository to test * fix wrong repository name * reducing text output length * fix cst printer shifts on unaryExpression * removing some test repositories to reduce ci time * fix camel case
- Loading branch information
Showing
11 changed files
with
123 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,3 @@ coverage | |
.idea | ||
samples | ||
|
||
packages/prettier-plugin-java/scripts/single-printer-run/ |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
samples | ||
test-samples | ||
scripts/single-printer-run |
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
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
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
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 |
---|---|---|
@@ -1,10 +1,28 @@ | ||
"use strict"; | ||
const { resolve } = require("path"); | ||
const { testRepositorySample } = require("./test-utils"); | ||
|
||
const jhipsterRepository = ["jhipster", "jhipster-sample-app"]; | ||
|
||
describe("prettier-java", () => { | ||
require("./test-utils").testRepositorySample( | ||
resolve(__dirname, "../samples/jhipster-sample-app"), | ||
"./mvnw", | ||
["compile"], | ||
{ cwd: resolve(__dirname, "../samples/jhipster-sample-app") } | ||
testRepositorySample( | ||
resolve(__dirname, "../samples/java-design-patterns"), | ||
"true", | ||
[] | ||
); | ||
|
||
testRepositorySample(resolve(__dirname, "../samples/spring-boot"), "./mvnw", [ | ||
"clean", | ||
"install", | ||
"-Ddisable.checks", | ||
"-DskipTests" | ||
]); | ||
|
||
jhipsterRepository.forEach(repository => { | ||
testRepositorySample( | ||
resolve(__dirname, `../samples/${repository}`), | ||
"./mvnw", | ||
["compile"] | ||
); | ||
}); | ||
}); |
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