mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
Always refer to rules by name (not number) in test configuration.
This commit is contained in:
parent
4d378815ba
commit
07b851b3c7
131 changed files with 412 additions and 396 deletions
|
|
@ -2162,7 +2162,7 @@ function getEnabledRulesPerLineNumber(ruleList, lines, frontMatterLines, noInlin
|
|||
var disableNextLine = action === "DISABLE-NEXT-LINE";
|
||||
if (disableLine || disableNextLine) {
|
||||
var nextLineNumber = frontMatterLines.length + lineNumber + (disableNextLine ? 1 : 0);
|
||||
enabledRulesPerLineNumber[nextLineNumber] = applyEnableDisable(action, parameter, enabledRulesPerLineNumber[nextLineNumber] || {});
|
||||
enabledRulesPerLineNumber[nextLineNumber] = applyEnableDisable(action, parameter, enabledRulesPerLineNumber[nextLineNumber]);
|
||||
}
|
||||
}
|
||||
// Handle inline comments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue