Skip to content

Commit be79547

Browse files
committed
Use FF to disable baseline file coverage
1 parent 10efd27 commit be79547

10 files changed

+63
-30
lines changed

lib/analyze-action-post.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/autobuild-action.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/resolve-environment-action.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/setup-codeql-action.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/codeql.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,13 @@ async function getCodeQLForCmd(
620620
extraArgs.push("--overlay-base");
621621
}
622622

623+
const baselineFilesOptions = config.enableFileCoverageInformation
624+
? [
625+
"--calculate-language-specific-baseline",
626+
"--sublanguage-file-coverage",
627+
]
628+
: ["--no-calculate-baseline"];
629+
623630
await runCli(
624631
cmd,
625632
[
@@ -631,12 +638,11 @@ async function getCodeQLForCmd(
631638
"--db-cluster",
632639
config.dbLocation,
633640
`--source-root=${sourceRoot}`,
634-
"--calculate-language-specific-baseline",
641+
...baselineFilesOptions,
635642
"--extractor-include-aliases",
636-
"--sublanguage-file-coverage",
637643
...extraArgs,
638644
...getExtraOptionsFromEnv(["database", "init"], {
639-
ignoringOptions: ["--overwrite"],
645+
ignoringOptions: ["--overwrite", ...baselineFilesOptions],
640646
}),
641647
],
642648
{ stdin: externalRepositoryToken },

0 commit comments

Comments
 (0)