Explain why we ignore extra baseline files options

This commit is contained in:
Henry Mercer
2026-01-26 18:02:58 +00:00
parent 9a55d5bc5f
commit f1aa4f497a
10 changed files with 30 additions and 0 deletions
+3
View File
@@ -642,6 +642,9 @@ async function getCodeQLForCmd(
"--extractor-include-aliases",
...extraArgs,
...getExtraOptionsFromEnv(["database", "init"], {
// Some user configs specify `--no-calculate-baseline` as an additional
// argument to `codeql database init`. Therefore ignore the baseline file
// options here to avoid specifying the same argument twice and erroring.
ignoringOptions: ["--overwrite", ...baselineFilesOptions],
}),
],