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

@ -19,12 +19,18 @@ module.exports = {
let match = null;
while ((match = tabRe.exec(line)) !== null) {
const column = match.index + 1;
const length = match[0].length;
addError(
onError,
lineIndex + 1,
"Column: " + column,
null,
[ column, match[0].length ]);
[ column, length ],
{
"editColumn": column,
"deleteCount": length,
"insertText": "".padEnd(length)
});
}
}
});