Skip to content

Commit d00a4ab

Browse files
committed
Adapt gradle test for the API.
1 parent 9658d41 commit d00a4ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/ErrorShouldRethrowTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private void writeBuild(String... toInsert) throws IOException {
4343
lines.add(" target file('README.md')");
4444
lines.add(" custom 'no swearing', {");
4545
lines.add(" if (it.toLowerCase(Locale.ROOT).contains('fubar')) {");
46-
lines.add(" throw com.diffplug.spotless.Lint.atUndefinedLine('swearing', 'No swearing!');");
46+
lines.add(" throw com.diffplug.spotless.Lint.atUndefinedLine('swearing', 'No swearing!').shortcut();");
4747
lines.add(" }");
4848
lines.add(" }");
4949
lines.addAll(Arrays.asList(toInsert));

0 commit comments

Comments
 (0)