Only warn about path filters for CLIs that don't warn
This commit is contained in:
parent
a74dcdb056
commit
eb991df649
9 changed files with 55 additions and 35 deletions
10
src/init.ts
10
src/init.ts
|
|
@ -11,6 +11,7 @@ import { CodeQLDefaultVersionInfo } from "./feature-flags";
|
|||
import { Language, isScannedLanguage } from "./languages";
|
||||
import { Logger } from "./logging";
|
||||
import { ToolsSource } from "./setup-codeql";
|
||||
import { ToolsFeature } from "./tools-features";
|
||||
import { TracerConfig, getCombinedTracerConfig } from "./tracer-config";
|
||||
import * as util from "./util";
|
||||
|
||||
|
|
@ -45,11 +46,18 @@ export async function initCodeQL(
|
|||
|
||||
export async function initConfig(
|
||||
inputs: configUtils.InitConfigInputs,
|
||||
codeql: CodeQL,
|
||||
): Promise<configUtils.Config> {
|
||||
const logger = inputs.logger;
|
||||
logger.startGroup("Load language configuration");
|
||||
const config = await configUtils.initConfig(inputs);
|
||||
printPathFiltersWarning(config, logger);
|
||||
if (
|
||||
!(await codeql.supportsFeature(
|
||||
ToolsFeature.InformsAboutUnsupportedPathFilters,
|
||||
))
|
||||
) {
|
||||
printPathFiltersWarning(config, logger);
|
||||
}
|
||||
logger.endGroup();
|
||||
return config;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue