Don't pass --no- flag as it doesn't exist yet
This commit is contained in:
parent
a0407a8c60
commit
d03c744ad6
3 changed files with 1 additions and 12 deletions
3
lib/codeql.js
generated
3
lib/codeql.js
generated
|
|
@ -281,9 +281,6 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||
if (await features.getValue(feature_flags_1.Feature.LanguageBaselineConfigEnabled, this)) {
|
||||
extraArgs.push("--calculate-language-specific-baseline");
|
||||
}
|
||||
else if (await util.codeQlVersionAbove(this, feature_flags_1.CODEQL_VERSION_LANGUAGE_BASELINE_CONFIG)) {
|
||||
extraArgs.push("--no-calculate-language-specific-baseline");
|
||||
}
|
||||
await runTool(cmd, [
|
||||
"database",
|
||||
"init",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -16,7 +16,6 @@ import {
|
|||
Feature,
|
||||
FeatureEnablement,
|
||||
useCodeScanningConfigInCli,
|
||||
CODEQL_VERSION_LANGUAGE_BASELINE_CONFIG,
|
||||
} from "./feature-flags";
|
||||
import { isTracedLanguage, Language } from "./languages";
|
||||
import { Logger } from "./logging";
|
||||
|
|
@ -580,13 +579,6 @@ export async function getCodeQLForCmd(
|
|||
await features.getValue(Feature.LanguageBaselineConfigEnabled, this)
|
||||
) {
|
||||
extraArgs.push("--calculate-language-specific-baseline");
|
||||
} else if (
|
||||
await util.codeQlVersionAbove(
|
||||
this,
|
||||
CODEQL_VERSION_LANGUAGE_BASELINE_CONFIG,
|
||||
)
|
||||
) {
|
||||
extraArgs.push("--no-calculate-language-specific-baseline");
|
||||
}
|
||||
|
||||
await runTool(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue