Skip to content

Commit 8910c68

Browse files
nedtwiggGoooler
authored andcommitted
Adjust StepHarnessBase so that the newly fixed roundtrips get tested.
1 parent adb6ec7 commit 8910c68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

testlib/src/main/java/com/diffplug/spotless/StepHarnessBase.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import java.util.Locale;
1919
import java.util.Objects;
20+
import java.util.Set;
2021

2122
import org.assertj.core.api.Assertions;
2223

@@ -48,6 +49,10 @@ protected StepHarnessBase(Formatter formatter) {
4849
supportsRoundTrip = true;
4950
} else if (onlyStepName.equals("fence")) {
5051
supportsRoundTrip = true;
52+
} else if (Set.of("ktlint", "ktfmt", "scalafmt", "palantir-java-format", "google-java-format",
53+
"removeUnusedImports", "cleanthat", "No line break between type annotation and type",
54+
"importOrder", "Remove unnecessary semicolons").contains(onlyStepName)) {
55+
supportsRoundTrip = true;
5156
}
5257
}
5358
}

0 commit comments

Comments
 (0)