mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 14:40:10 +08:00
Rename resolveQuerySuiteAlias parameter
This commit is contained in:
14
lib/analyze.js
generated
14
lib/analyze.js
generated
@@ -395,18 +395,18 @@ exports.defaultSuites = new Set([
|
||||
"code-scanning",
|
||||
]);
|
||||
/**
|
||||
* If `query` is the name of a default query suite, it is resolved into the corresponding
|
||||
* query suite name for the given `language`. Otherwise, `query` is returned as is.
|
||||
* If `maybeSuite` is the name of a default query suite, it is resolved into the corresponding
|
||||
* query suite name for the given `language`. Otherwise, `maybeSuite` is returned as is.
|
||||
*
|
||||
* @param language The language for which to resolve the default query suite name.
|
||||
* @param query The string that potentially contains the name of a default query suite.
|
||||
* @param maybeSuite The string that potentially contains the name of a default query suite.
|
||||
* @returns Returns the resolved query suite name, or the unmodified input.
|
||||
*/
|
||||
function resolveQuerySuiteAlias(language, query) {
|
||||
if (exports.defaultSuites.has(query)) {
|
||||
return `${language}-${query}.qls`;
|
||||
function resolveQuerySuiteAlias(language, maybeSuite) {
|
||||
if (exports.defaultSuites.has(maybeSuite)) {
|
||||
return `${language}-${maybeSuite}.qls`;
|
||||
}
|
||||
return query;
|
||||
return maybeSuite;
|
||||
}
|
||||
// Runs queries and creates sarif files in the given folder
|
||||
async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag, cleanupLevel, diffRangePackDir, automationDetailsId, config, logger, features) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user