swt 3.1.1

🍬 Sweet: A blazing-fast code health and architecture analyzer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Report generation and formatting module.

pub mod json;
pub mod terminal;

use crate::FileReport;
use std::path::Path;

/// Orchestrates report output to terminal and optional JSON files.
pub fn print_reports(reports: &[FileReport], quiet: bool, json_path: Option<&Path>) {
    if let Some(path) = json_path {
        json::write_json_report(reports, path);
    }

    terminal::print_summary(reports, quiet);
}