Skip to content

Commit 640d8e7

Browse files
committed
Add rule prefix to message
1 parent 0f296cb commit 640d8e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/ktlint/java/com/diffplug/spotless/glue/ktlint/KtlintFormatterFunc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static class FormatterCallback implements Function2<LintError, Boolean, Unit> {
111111
@Override
112112
public Unit invoke(LintError lint, Boolean corrected) {
113113
if (!corrected) {
114-
throw new AssertionError("Error on line: " + lint.getLine() + ", column: " + lint.getCol() + "\n" + lint.getRuleId() + "\n" + lint.getDetail());
114+
throw new AssertionError("Error on line: " + lint.getLine() + ", column: " + lint.getCol() + "\nrule: " + lint.getRuleId() + "\n" + lint.getDetail());
115115
}
116116
return null;
117117
}

0 commit comments

Comments
 (0)