@liendev/lien 0.19.4 → 0.19.5

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/index.js CHANGED
@@ -8298,7 +8298,14 @@ function formatTextReport(report) {
8298
8298
 
8299
8299
  // src/insights/formatters/json.ts
8300
8300
  function formatJsonReport(report) {
8301
- return JSON.stringify(report, null, 2);
8301
+ const filesWithViolations = Object.fromEntries(
8302
+ Object.entries(report.files).filter(([_, data]) => data.violations.length > 0)
8303
+ );
8304
+ const filteredReport = {
8305
+ summary: report.summary,
8306
+ files: filesWithViolations
8307
+ };
8308
+ return JSON.stringify(filteredReport, null, 2);
8302
8309
  }
8303
8310
 
8304
8311
  // src/insights/formatters/sarif.ts