Save JSON report to file.
(
self,
scan_results: list[ScanResult],
output_path: str,
config: Optional[ReportConfig] = None,
)
| 404 | def save_json( |
| 405 | self, |
| 406 | scan_results: list[ScanResult], |
| 407 | output_path: str, |
| 408 | config: ReportConfig | None = None, |
| 409 | ) -> Path: |
| 410 | """Save JSON report to file.""" |
| 411 | data = self.generate_json(scan_results, config) |
| 412 | path = Path(output_path) |
| 413 | path.write_text(json.dumps(data, indent=2, default=str)) |
| 414 | self.logger.info(f"JSON report saved to {path}") |
| 415 | return path |
no test coverage detected