mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-22 08:50:13 +01:00
Refactor various code to do shallow/constrained search instead of deep search for better performance, make cache key for filterByTypesCached unique.
This commit is contained in:
parent
2fa7730a6b
commit
d22c1f19ef
12 changed files with 171 additions and 220 deletions
|
|
@ -82,9 +82,8 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
if (isError) {
|
||||
// eslint-disable-next-line no-undef-init
|
||||
let range = undefined;
|
||||
let fixInfo = null;
|
||||
let fixInfo = undefined;
|
||||
if (startLine === endLine) {
|
||||
range = [ startColumn, endColumn - startColumn ];
|
||||
let insertText = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue