Skip to main content

Crate churnloom

Crate churnloom 

Source
Expand description

Codebase-health analysis for command-line and programmatic use.

analyze returns the same structured report used by the churnloom CLI without writing to standard output.

use churnloom::{AnalysisOptions, analyze};

let mut options = AnalysisOptions::new(".");
options.long_days = 90;
let report = analyze(&options)?;
println!("{} files", report.summary.files);

Modules§

cli
Command-line argument types.
model
Structured analysis report types.

Structs§

AnalysisOptions
Configuration for a programmatic Churnloom analysis.

Functions§

analyze
Analyze a project without writing output.
run
Analyze a project and print the selected report format.