@dotzen/dotzen 0.0.3 → 0.0.4
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/report/report.js +9 -1
- package/package.json +1 -1
package/dist/report/report.js
CHANGED
|
@@ -63,7 +63,15 @@ function renderTerminal(report, opts = {}) {
|
|
|
63
63
|
}
|
|
64
64
|
lines.push('');
|
|
65
65
|
if (report.violations.length === 0) {
|
|
66
|
-
|
|
66
|
+
if (cne === 0) {
|
|
67
|
+
// Reserve the unqualified green check for a truly complete pass.
|
|
68
|
+
lines.push(`${paint('✓ passed', ANSI.green)} (${report.passed} checks)`);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
// No violations, but some checks couldn't be evaluated — those are
|
|
72
|
+
// gaps to review, not successes, so don't show a clean green ✓.
|
|
73
|
+
lines.push(`${paint('⚠ no violations', ANSI.magenta)}, but ${paint(`${cne} could not be evaluated`, ANSI.magenta)} — review the section above (${report.passed} passed)`);
|
|
74
|
+
}
|
|
67
75
|
}
|
|
68
76
|
else {
|
|
69
77
|
const count = `${report.violations.length} violation(s)`;
|