Merge pull request #1812 from github/henrymercer/no-loc-baseline-for-new-summary

Don't print the lines of code baseline when new analysis summary enabled
This commit is contained in:
Henry Mercer 2023-07-28 17:18:54 +01:00 committed by GitHub
commit 81ae676e79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

4
lib/analyze.js generated
View file

@ -232,7 +232,9 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag,
}
statusReport["event_reports"].push(perQueryAlertCountEventReport);
}
await runPrintLinesOfCode(language);
if (!(await features.getValue(feature_flags_1.Feature.NewAnalysisSummaryEnabled, codeql))) {
await runPrintLinesOfCode(language);
}
}
catch (e) {
logger.info(String(e));

File diff suppressed because one or more lines are too long