swt 3.6.0

🍬 Sweet: A blazing-fast code health and architecture analyzer.
Documentation
1
2
3
4
5
6
7
8
9
use crate::FileReport;
use std::fs;
use std::path::Path;

pub fn write_json_report(reports: &[FileReport], path: &Path) {
    if let Ok(json) = serde_json::to_string_pretty(reports) {
        let _ = fs::write(path, json);
    }
}