Update MD009/MD010/MD012/MD028 to report fixInfo for violations.

This commit is contained in:
David Anson 2019-08-24 22:55:51 -07:00
parent 679c83e23b
commit 2cd27c58f2
8 changed files with 165 additions and 31 deletions

View file

@ -15,7 +15,17 @@ module.exports = {
forEachLine(lineMetadata(), (line, lineIndex, inCode) => {
count = (inCode || line.trim().length) ? 0 : count + 1;
if (maximum < count) {
addErrorDetailIf(onError, lineIndex + 1, maximum, count);
addErrorDetailIf(
onError,
lineIndex + 1,
maximum,
count,
null,
null,
null,
{
"deleteCount": -1
});
}
});
}