* Writes the JSON report to disk.
(report: AuditReport)
| 457 | * Writes the JSON report to disk. |
| 458 | */ |
| 459 | function writeJsonReport(report: AuditReport): void { |
| 460 | fs.writeFileSync(REPORT_OUTPUT_PATH, JSON.stringify(report, null, 2), 'utf-8'); |
| 461 | console.log( |
| 462 | `📄 JSON report written to: ${path.relative(process.cwd(), REPORT_OUTPUT_PATH)}` |
| 463 | ); |
| 464 | } |
| 465 | |
| 466 | // ============================================ |
| 467 | // Main |