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

This commit is contained in:
David Anson 2025-08-26 23:03:50 -07:00
parent a56441003e
commit 7e364c6a8f
3 changed files with 97 additions and 25 deletions

View file

@ -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;
}