src/pqc_lint/reporters/json_reporter.py
| 1 | """JSON reporter.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | from pqc_lint.findings import ScanReport |
| 6 | from pqc_lint.reporters.base import Reporter |
| 7 | |
| 8 | |
| 9 | class JsonReporter(Reporter): |
| 10 | format_name = "json" |
| 11 | |
| 12 | def render(self, report: ScanReport) -> str: |
| 13 | return report.to_json() |
| 14 | |