snyk 1.936.0 → 1.937.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/784.index.js
CHANGED
|
@@ -2406,13 +2406,11 @@ function formatTestMetaSection(iacMeta) {
|
|
|
2406
2406
|
return metaSection;
|
|
2407
2407
|
}
|
|
2408
2408
|
function formatCountsSection(testData) {
|
|
2409
|
-
var _a, _b;
|
|
2410
2409
|
const filesWithIssues = testData.results.filter((result) => result.result.cloudConfigResults.length).length;
|
|
2411
2410
|
const filesWithoutIssues = testData.results.length - filesWithIssues;
|
|
2412
2411
|
const countsSectionProperties = [];
|
|
2413
2412
|
countsSectionProperties.push(`${utils_1.colors.success.bold(theme_1.icon.VALID)} Files without issues: ${utils_1.colors.info.bold(`${filesWithoutIssues}`)}`);
|
|
2414
2413
|
countsSectionProperties.push(`${utils_1.colors.failure.bold(theme_1.icon.ISSUE)} Files with issues: ${utils_1.colors.info.bold(`${filesWithIssues}`)}`);
|
|
2415
|
-
countsSectionProperties.push(`${INDENT}Invalid files: ${utils_1.colors.info.bold(`${(_b = (_a = testData.failures) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0}`)}`);
|
|
2416
2414
|
countsSectionProperties.push(`${INDENT}Ignored issues: ${utils_1.colors.info.bold(`${testData.ignoreCount}`)}`);
|
|
2417
2415
|
let totalIssuesCount = 0;
|
|
2418
2416
|
const issueCountsBySeverities = {
|