Skip to content

Commit d1bec5b

Browse files
committed
Adapt FenceStep for the reality that we haven't shipped linting yet.
1 parent 577374e commit d1bec5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/main/java/com/diffplug/spotless/generic/FenceStep.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import java.io.File;
1919
import java.io.Serializable;
2020
import java.nio.charset.StandardCharsets;
21+
import java.nio.file.Path;
2122
import java.util.ArrayList;
2223
import java.util.List;
2324
import java.util.Objects;
@@ -176,6 +177,7 @@ protected Formatter buildFormatter() {
176177
.encoding(StandardCharsets.UTF_8) // can be any UTF, doesn't matter
177178
.lineEndingsPolicy(LineEnding.UNIX.createPolicy()) // just internal, won't conflict with user
178179
.steps(steps)
180+
.rootDir(Path.of("")) // TODO: error messages will be suboptimal for now, but it will get fixed when we ship linting
179181
.build();
180182
}
181183

0 commit comments

Comments
 (0)