Remove --sarif-include-diagnostics from diagnotics export

This commit is contained in:
Angela P Wen
2023-03-13 16:18:03 -07:00
parent 1e4efb175e
commit ec89543aba
3 changed files with 7 additions and 26 deletions
Generated
+3 -8
View File
@@ -622,7 +622,9 @@ async function getCodeQLForCmd(cmd, checkVersion) {
"--db-cluster",
"--format=sarif-latest",
`--output=${sarifFile}`,
await getSarifIncludeDiagnosticsArgument(this, features),
(await features.getValue(feature_flags_1.Feature.ExportCodeScanningConfigEnabled, this))
? "--sarif-include-diagnostics"
: "",
...getExtraOptionsFromEnv(["diagnostics", "export"]),
];
args.push(databasePath);
@@ -637,7 +639,6 @@ async function getCodeQLForCmd(cmd, checkVersion) {
"export",
"--format=sarif-latest",
`--output=${sarifFile}`,
await getSarifIncludeDiagnosticsArgument(this, features),
...(await getCodeScanningConfigExportArguments(config, this, features)),
...getExtraOptionsFromEnv(["diagnostics", "export"]),
];
@@ -831,10 +832,4 @@ async function getCodeScanningConfigExportArguments(config, codeql, features) {
}
return [];
}
async function getSarifIncludeDiagnosticsArgument(codeql, features) {
if ((await features.getValue(feature_flags_1.Feature.ExportCodeScanningConfigEnabled, codeql)) === true) {
return "--sarif-include-diagnostics";
}
return "";
}
//# sourceMappingURL=codeql.js.map