mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 15:00:13 +01:00
wip
Some checks are pending
Checkers / linkcheck (push) Waiting to run
Checkers / spellcheck (push) Waiting to run
CI / build (20, macos-latest) (push) Waiting to run
CI / build (20, ubuntu-latest) (push) Waiting to run
CI / build (20, windows-latest) (push) Waiting to run
CI / build (22, macos-latest) (push) Waiting to run
CI / build (22, ubuntu-latest) (push) Waiting to run
CI / build (22, windows-latest) (push) Waiting to run
CI / build (24, macos-latest) (push) Waiting to run
CI / build (24, ubuntu-latest) (push) Waiting to run
CI / build (24, windows-latest) (push) Waiting to run
CI / pnpm (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
TestRepos / build (latest, ubuntu-latest) (push) Waiting to run
UpdateTestRepos / update (push) Waiting to run
Some checks are pending
Checkers / linkcheck (push) Waiting to run
Checkers / spellcheck (push) Waiting to run
CI / build (20, macos-latest) (push) Waiting to run
CI / build (20, ubuntu-latest) (push) Waiting to run
CI / build (20, windows-latest) (push) Waiting to run
CI / build (22, macos-latest) (push) Waiting to run
CI / build (22, ubuntu-latest) (push) Waiting to run
CI / build (22, windows-latest) (push) Waiting to run
CI / build (24, macos-latest) (push) Waiting to run
CI / build (24, ubuntu-latest) (push) Waiting to run
CI / build (24, windows-latest) (push) Waiting to run
CI / pnpm (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
TestRepos / build (latest, ubuntu-latest) (push) Waiting to run
UpdateTestRepos / update (push) Waiting to run
This commit is contained in:
parent
a56441003e
commit
7e364c6a8f
3 changed files with 97 additions and 25 deletions
|
|
@ -664,14 +664,6 @@ function lintContent(
|
|||
a.ruleNames[0].localeCompare(b.ruleNames[0]) ||
|
||||
a.lineNumber - b.lineNumber
|
||||
));
|
||||
// Deprecated: Convert results to specified resultVersion
|
||||
if (resultVersion === 0) {
|
||||
results = helpers.convertToResultVersion0(results);
|
||||
} else if (resultVersion === 1) {
|
||||
results = helpers.convertToResultVersion1(results);
|
||||
} else if (resultVersion === 2) {
|
||||
results = helpers.convertToResultVersion2(results);
|
||||
}
|
||||
return results;
|
||||
};
|
||||
// Run all rules
|
||||
|
|
@ -893,7 +885,16 @@ function lintInput(options, synchronous, callback) {
|
|||
} else if (concurrency === 0) {
|
||||
// Finish
|
||||
done = true;
|
||||
return callback(null, results);
|
||||
// Deprecated: Convert results to specified resultVersion
|
||||
let convertedResults = results;
|
||||
if (resultVersion === 0) {
|
||||
convertedResults = helpers.convertToResultVersion0(results);
|
||||
} else if (resultVersion === 1) {
|
||||
convertedResults = helpers.convertToResultVersion1(results);
|
||||
} else if (resultVersion === 2) {
|
||||
convertedResults = helpers.convertToResultVersion2(results);
|
||||
}
|
||||
return callback(null, convertedResults);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue