More renaming
This commit is contained in:
parent
6c869f8b03
commit
701cea34ba
45 changed files with 356 additions and 358 deletions
|
|
@ -389,7 +389,7 @@ async function addBuiltinSuiteQueries(
|
|||
resultMap: Queries,
|
||||
packs: Packs,
|
||||
suiteName: string,
|
||||
featureFlags: FeatureEnablement,
|
||||
featureEnablement: FeatureEnablement,
|
||||
configFile?: string
|
||||
): Promise<boolean> {
|
||||
let injectedMlQueries = false;
|
||||
|
|
@ -411,7 +411,7 @@ async function addBuiltinSuiteQueries(
|
|||
languages.includes("javascript") &&
|
||||
(found === "security-extended" || found === "security-and-quality") &&
|
||||
!packs.javascript?.some(isMlPoweredJsQueriesPack) &&
|
||||
(await featureFlags.getValue(Feature.MlPoweredQueriesEnabled, codeQL))
|
||||
(await featureEnablement.getValue(Feature.MlPoweredQueriesEnabled, codeQL))
|
||||
) {
|
||||
if (!packs.javascript) {
|
||||
packs.javascript = [];
|
||||
|
|
@ -543,7 +543,7 @@ async function parseQueryUses(
|
|||
tempDir: string,
|
||||
workspacePath: string,
|
||||
apiDetails: api.GitHubApiExternalRepoDetails,
|
||||
featureFlags: FeatureEnablement,
|
||||
featureEnablement: FeatureEnablement,
|
||||
logger: Logger,
|
||||
configFile?: string
|
||||
): Promise<boolean> {
|
||||
|
|
@ -572,7 +572,7 @@ async function parseQueryUses(
|
|||
resultMap,
|
||||
packs,
|
||||
queryUses,
|
||||
featureFlags,
|
||||
featureEnablement,
|
||||
configFile
|
||||
);
|
||||
}
|
||||
|
|
@ -948,7 +948,7 @@ async function addQueriesAndPacksFromWorkflow(
|
|||
tempDir: string,
|
||||
workspacePath: string,
|
||||
apiDetails: api.GitHubApiExternalRepoDetails,
|
||||
featureFlags: FeatureEnablement,
|
||||
featureEnablement: FeatureEnablement,
|
||||
logger: Logger
|
||||
): Promise<boolean> {
|
||||
let injectedMlQueries = false;
|
||||
|
|
@ -966,7 +966,7 @@ async function addQueriesAndPacksFromWorkflow(
|
|||
tempDir,
|
||||
workspacePath,
|
||||
apiDetails,
|
||||
featureFlags,
|
||||
featureEnablement,
|
||||
logger
|
||||
);
|
||||
injectedMlQueries = injectedMlQueries || didInject;
|
||||
|
|
@ -1005,7 +1005,7 @@ export async function getDefaultConfig(
|
|||
workspacePath: string,
|
||||
gitHubVersion: GitHubVersion,
|
||||
apiDetails: api.GitHubApiCombinedDetails,
|
||||
featureFlags: FeatureEnablement,
|
||||
featureEnablement: FeatureEnablement,
|
||||
logger: Logger
|
||||
): Promise<Config> {
|
||||
const languages = await getLanguages(
|
||||
|
|
@ -1044,7 +1044,7 @@ export async function getDefaultConfig(
|
|||
tempDir,
|
||||
workspacePath,
|
||||
apiDetails,
|
||||
featureFlags,
|
||||
featureEnablement,
|
||||
logger
|
||||
);
|
||||
}
|
||||
|
|
@ -1114,7 +1114,7 @@ async function loadConfig(
|
|||
workspacePath: string,
|
||||
gitHubVersion: GitHubVersion,
|
||||
apiDetails: api.GitHubApiCombinedDetails,
|
||||
featureFlags: FeatureEnablement,
|
||||
featureEnablement: FeatureEnablement,
|
||||
logger: Logger
|
||||
): Promise<Config> {
|
||||
let parsedYAML: UserConfig;
|
||||
|
|
@ -1195,7 +1195,7 @@ async function loadConfig(
|
|||
tempDir,
|
||||
workspacePath,
|
||||
apiDetails,
|
||||
featureFlags,
|
||||
featureEnablement,
|
||||
logger
|
||||
);
|
||||
}
|
||||
|
|
@ -1220,7 +1220,7 @@ async function loadConfig(
|
|||
tempDir,
|
||||
workspacePath,
|
||||
apiDetails,
|
||||
featureFlags,
|
||||
featureEnablement,
|
||||
logger,
|
||||
configFile
|
||||
);
|
||||
|
|
@ -1638,7 +1638,7 @@ export async function initConfig(
|
|||
workspacePath: string,
|
||||
gitHubVersion: GitHubVersion,
|
||||
apiDetails: api.GitHubApiCombinedDetails,
|
||||
featureFlags: FeatureEnablement,
|
||||
featureEnablement: FeatureEnablement,
|
||||
logger: Logger
|
||||
): Promise<Config> {
|
||||
let config: Config;
|
||||
|
|
@ -1661,7 +1661,7 @@ export async function initConfig(
|
|||
workspacePath,
|
||||
gitHubVersion,
|
||||
apiDetails,
|
||||
featureFlags,
|
||||
featureEnablement,
|
||||
logger
|
||||
);
|
||||
} else {
|
||||
|
|
@ -1681,7 +1681,7 @@ export async function initConfig(
|
|||
workspacePath,
|
||||
gitHubVersion,
|
||||
apiDetails,
|
||||
featureFlags,
|
||||
featureEnablement,
|
||||
logger
|
||||
);
|
||||
}
|
||||
|
|
@ -1703,9 +1703,9 @@ export async function initConfig(
|
|||
// When using the codescanning config in the CLI, pack downloads
|
||||
// happen in the CLI during the `database init` command, so no need
|
||||
// to download them here.
|
||||
await logCodeScanningConfigInCli(codeQL, featureFlags, logger);
|
||||
await logCodeScanningConfigInCli(codeQL, featureEnablement, logger);
|
||||
|
||||
if (!(await useCodeScanningConfigInCli(codeQL, featureFlags))) {
|
||||
if (!(await useCodeScanningConfigInCli(codeQL, featureEnablement))) {
|
||||
const registries = parseRegistries(registriesInput);
|
||||
await downloadPacks(
|
||||
codeQL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue