Pass negative SARIF include diagnostics flag when feature is disabled

In preparation for enabling this flag by default in the CLI
This commit is contained in:
Henry Mercer 2023-03-29 18:52:51 +01:00
parent 29a4713933
commit 69aec345f1
3 changed files with 6 additions and 1 deletions

3
lib/codeql.js generated
View file

@ -537,6 +537,9 @@ async function getCodeQLForCmd(cmd, checkVersion) {
if (shouldExportDiagnostics) {
codeqlArgs.push("--sarif-include-diagnostics");
}
else if (await util.codeQlVersionAbove(this, "2.12.4")) {
codeqlArgs.push("--no-sarif-include-diagnostics");
}
codeqlArgs.push(databasePath);
if (querySuitePaths) {
codeqlArgs.push(...querySuitePaths);

File diff suppressed because one or more lines are too long