zerum 0.1.0

Deterministic-first Python code governance: native checks (ZR001–ZR010), CLI, and SARIF/JSON reporters
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::core::Issue;
use crate::reporters::Reporter;
use anyhow::Result;

pub struct JsonReporter;

impl Reporter for JsonReporter {
    fn report(&self, issues: &[Issue]) -> Result<String> {
        Ok(serde_json::to_string_pretty(issues)?)
    }
}