Skip to content

Commit f865381

Browse files
committed
fix content provided by spotless and file is used only for as a virtual path
1 parent 281b5b3 commit f865381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/compatDiktat2Dot0Dot0/java/com/diffplug/spotless/glue/diktat/compat/DiktatCompat2Dot0Dot0Adapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public DiktatCompat2Dot0Dot0Adapter(@Nullable File configFile) {
4848
@Override
4949
public String format(File file, String content, boolean isScript) {
5050
errors.clear();
51-
String result = processor.fix(file.toPath(), formatterCallback);
51+
String result = processor.fix(content, file.toPath(), formatterCallback);
5252
DiktatReporting.reportIfRequired(errors, DiktatError::getLine, DiktatError::getCol, DiktatError::getDetail);
5353
return result;
5454
}

0 commit comments

Comments
 (0)