We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FenceStep
1 parent 577374e commit d1bec5bCopy full SHA for d1bec5b
lib/src/main/java/com/diffplug/spotless/generic/FenceStep.java
@@ -18,6 +18,7 @@
18
import java.io.File;
19
import java.io.Serializable;
20
import java.nio.charset.StandardCharsets;
21
+import java.nio.file.Path;
22
import java.util.ArrayList;
23
import java.util.List;
24
import java.util.Objects;
@@ -176,6 +177,7 @@ protected Formatter buildFormatter() {
176
177
.encoding(StandardCharsets.UTF_8) // can be any UTF, doesn't matter
178
.lineEndingsPolicy(LineEnding.UNIX.createPolicy()) // just internal, won't conflict with user
179
.steps(steps)
180
+ .rootDir(Path.of("")) // TODO: error messages will be suboptimal for now, but it will get fixed when we ship linting
181
.build();
182
}
183
0 commit comments