Don't print the lines of code baseline when new analysis summary enabled
This commit is contained in:
parent
feea86eed3
commit
67e62e7b01
3 changed files with 9 additions and 3 deletions
4
lib/analyze.js
generated
4
lib/analyze.js
generated
|
|
@ -232,7 +232,9 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag,
|
||||||
}
|
}
|
||||||
statusReport["event_reports"].push(perQueryAlertCountEventReport);
|
statusReport["event_reports"].push(perQueryAlertCountEventReport);
|
||||||
}
|
}
|
||||||
await runPrintLinesOfCode(language);
|
if (!(await features.getValue(feature_flags_1.Feature.NewAnalysisSummaryEnabled, codeql))) {
|
||||||
|
await runPrintLinesOfCode(language);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
logger.info(String(e));
|
logger.info(String(e));
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -388,7 +388,11 @@ export async function runQueries(
|
||||||
statusReport["event_reports"].push(perQueryAlertCountEventReport);
|
statusReport["event_reports"].push(perQueryAlertCountEventReport);
|
||||||
}
|
}
|
||||||
|
|
||||||
await runPrintLinesOfCode(language);
|
if (
|
||||||
|
!(await features.getValue(Feature.NewAnalysisSummaryEnabled, codeql))
|
||||||
|
) {
|
||||||
|
await runPrintLinesOfCode(language);
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.info(String(e));
|
logger.info(String(e));
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue