Skip to content

Commit

Permalink
Don't add unnecessary newlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jan 24, 2023
1 parent 2766dda commit 2f5ab0b
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ void integrationDiktat() throws IOException {
}

@Test

void integrationKtfmt() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand All @@ -79,7 +78,6 @@ void integrationKtfmt() throws IOException {
}

@Test

void integrationKtfmt_dropboxStyle_0_18() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand All @@ -98,7 +96,6 @@ void integrationKtfmt_dropboxStyle_0_18() throws IOException {
}

@Test

void integrationKtfmt_dropboxStyle_0_19() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand Down Expand Up @@ -194,7 +191,6 @@ void testWithHeader() throws IOException {
}

@Test

void testWithHeaderKtfmt() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand Down Expand Up @@ -233,7 +229,6 @@ void testWithCustomHeaderSeparator() throws IOException {
}

@Test

void testWithCustomHeaderSeparatorKtfmt() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand Down Expand Up @@ -279,7 +274,6 @@ void testWithNonStandardYearSeparator() throws IOException {
}

@Test

void testWithNonStandardYearSeparatorKtfmt() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand All @@ -306,7 +300,6 @@ void testWithNonStandardYearSeparatorKtfmt() throws IOException {
}

@Test

void testWithCustomMaxWidthDefaultStyleKtfmt() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand All @@ -328,7 +321,6 @@ void testWithCustomMaxWidthDefaultStyleKtfmt() throws IOException {
}

@Test

void testWithCustomMaxWidthDefaultStyleKtfmtGradleKts() throws IOException {
setFile("build.gradle.kts").toLines(
"plugins {",
Expand All @@ -350,7 +342,6 @@ void testWithCustomMaxWidthDefaultStyleKtfmtGradleKts() throws IOException {
}

@Test

void testWithCustomMaxWidthDropboxStyleKtfmt() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand All @@ -372,7 +363,6 @@ void testWithCustomMaxWidthDropboxStyleKtfmt() throws IOException {
}

@Test

void testWithCustomMaxWidthDropboxStyleKtfmtGradleKts() throws IOException {
setFile("build.gradle.kts").toLines(
"plugins {",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ void withExperimentalEditorConfigOverride() throws IOException {
}

@Test

void integration_ktfmt() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand All @@ -168,7 +167,6 @@ void integration_ktfmt() throws IOException {
}

@Test

void integration_ktfmt_with_dropbox_style() throws IOException {
setFile("build.gradle").toLines(
"plugins {",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ void specificVersionSpecificStyle() throws Exception {
}

@Test

void specificVersionReflowLongStrings() throws Exception {
writePomWithJavaSteps(
"<googleJavaFormat>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ void specificVersionDefaultStyle() throws Exception {
}

@Test

void specificJava11Version2() throws Exception {
writePomWithJavaSteps(
"<palantirJavaFormat>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ protected FormatterStep create() {
}

@Test

void equalityGroupArtifact() throws Exception {
new SerializableEqualityTester() {
String groupArtifact = GoogleJavaFormatStep.defaultGroupArtifact();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void jvm13Features() throws Exception {
}

@Test

void behavior2() throws Exception {
FormatterStep step = PalantirJavaFormatStep.create("2.28.0", TestProvisioner.mavenCentral());
StepHarness.forStep(step)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,18 @@
@Disabled
class KtfmtStepTest extends ResourceHarness {
@Test

void behavior() throws Exception {
FormatterStep step = KtfmtStep.create(TestProvisioner.mavenCentral());
StepHarness.forStep(step).testResource("kotlin/ktfmt/basic.dirty", "kotlin/ktfmt/basic.clean");
}

@Test

void dropboxStyle_0_18() throws Exception {
FormatterStep step = KtfmtStep.create("0.18", TestProvisioner.mavenCentral(), KtfmtStep.Style.DROPBOX, null);
StepHarness.forStep(step).testResource("kotlin/ktfmt/basic.dirty", "kotlin/ktfmt/basic-dropboxstyle.clean");
}

@Test

void dropboxStyle_0_19() throws Exception {
FormatterStep step = KtfmtStep.create("0.19", TestProvisioner.mavenCentral(), KtfmtStep.Style.DROPBOX, null);
StepHarness.forStep(step).testResource("kotlin/ktfmt/basic.dirty", "kotlin/ktfmt/basic-dropboxstyle.clean");
Expand Down

0 comments on commit 2f5ab0b

Please sign in to comment.