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)?) } }