+18
-10
@@ -26,2 +26,3 @@ #!/usr/bin/env node | ||
| 'no-exit-zero': { type: 'boolean', short: 'e', default: false }, | ||
| quiet: { type: 'boolean', short: 'q', default: false }, | ||
| config: { type: 'string', short: 'c' }, | ||
@@ -70,2 +71,3 @@ help: { type: 'boolean', short: 'h', default: false }, | ||
| -e, --no-exit-zero Override \`exitZero: true\` from a config file for the respective run | ||
| -q, --quiet Suppress the per-file findings/skipped-group detail listing (and its file-path header); summaries still print | ||
| -c, --config <path> Path to a config file (defaults to \`css-dedup.config.js\` in the working directory, if present) | ||
@@ -403,3 +405,3 @@ -h, --help Show this help`); | ||
| if (multi) console.log(styleText('bold', label)); | ||
| if (multi && !values.quiet) console.log(styleText('bold', label)); | ||
@@ -821,4 +823,6 @@ let css; | ||
| // skipped list can’t push the outcome off-screen and out of scrollback, | ||
| // the same order report mode already uses for its own skipped list | ||
| logSkippedDetail(log, skipped, skippedAggressive); | ||
| // the same order report mode already uses for its own skipped list. | ||
| // `--quiet` drops it: The summary bullets below already restate the | ||
| // skipped count on their own. | ||
| if (!values.quiet) logSkippedDetail(log, skipped, skippedAggressive); | ||
@@ -898,10 +902,14 @@ log(multi ? styleText('bold', summaryLabel.trim()) : 'Summary:'); | ||
| // figure for a finding the reader can’t actually see anywhere | ||
| if (findingsDefault.length) printFindings(findingsDefault); | ||
| else if (findingsAgg.length) printFindings(findingsAgg); | ||
| // `--quiet` drops both detail blocks below: The report table that follows | ||
| // already gives the finding/savings counts on their own. | ||
| if (!values.quiet) { | ||
| if (findingsDefault.length) printFindings(findingsDefault); | ||
| else if (findingsAgg.length) printFindings(findingsAgg); | ||
| // Findings above don’t distinguish safe from unsafe—without this, a | ||
| // duplicate group that `--fix` would just skip (see its own safety | ||
| // checks) reads as if nothing follows from it at all, when there’s a | ||
| // concrete, explainable reason it wasn’t offered as a `--fix` win | ||
| logSkippedDetail(console.log, passDefault.skipped, skippedWithAggressive(passAgg)); | ||
| // Findings above don’t distinguish safe from unsafe—without this, a | ||
| // duplicate group that `--fix` would just skip (see its own safety | ||
| // checks) reads as if nothing follows from it at all, when there’s a | ||
| // concrete, explainable reason it wasn’t offered as a `--fix` win | ||
| logSkippedDetail(console.log, passDefault.skipped, skippedWithAggressive(passAgg)); | ||
| } | ||
@@ -908,0 +916,0 @@ // Summary and `--fix` payoff close each style sheet’s report. The label is |
+1
-1
@@ -64,3 +64,3 @@ { | ||
| "types": "src/index.d.ts", | ||
| "version": "1.6.1" | ||
| "version": "1.7.0" | ||
| } |
+3
-0
@@ -83,2 +83,3 @@ # CSS Dedup, the CSS Declaration Deduplicator | ||
| | `--no-exit-zero`, `-e` | Override `exitZero: true` from a config file for the respective run | | ||
| | `--quiet`, `-q` | Suppress the per-file findings/skipped-group detail listing (and its file-path header); summaries still print | | ||
| | `--config <path>`, `-c <path>` | Path to a config file (defaults to `css-dedup.config.js` in the working directory, if present) | | ||
@@ -95,2 +96,4 @@ | `--help`, `-h` | Show usage information | | ||
| By default, every finding and every skipped-as-unsafe group is listed in full, with its reasoning (e.g., which intervening declaration blocked a merge)—useful for deciding whether to hand-fix something or reach for `--aggressive`, but often more than a build log needs. `--quiet` drops that per-file detail listing (and the file-path header that precedes it), while still printing each file’s summary and the overall summary for a multi-file run—both already state the finding/skipped counts on their own. Re-run without `--quiet` to see the detail behind those counts. | ||
| Note: `--fix` rewrites CSS text only—it doesn’t regenerate a source map. If a rewritten file references one (a `/*# sourceMappingURL=… */` comment, typically left by a build tool), CSS Dedup notes that the map is now stale. | ||
@@ -97,0 +100,0 @@ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
198080
0.63%3205
0.25%251
1.21%