pub struct HealthSummary {Show 20 fields
pub files_analyzed: usize,
pub functions_analyzed: usize,
pub functions_above_threshold: usize,
pub max_cyclomatic_threshold: u16,
pub max_cognitive_threshold: u16,
pub max_crap_threshold: f64,
pub max_unit_size_threshold: u32,
pub files_scored: Option<usize>,
pub average_maintainability: Option<f64>,
pub coverage_model: Option<CoverageModel>,
pub coverage_input_format: Option<CoverageInputFormat>,
pub coverage_source_consistency: Option<CoverageSourceConsistency>,
pub istanbul_matched: Option<usize>,
pub istanbul_total: Option<usize>,
pub istanbul_files_matched: Option<usize>,
pub istanbul_files_total: Option<usize>,
pub severity_critical_count: usize,
pub severity_high_count: usize,
pub severity_moderate_count: usize,
pub baseline_staleness: Option<BaselineStaleness>,
}Expand description
Summary statistics for the health report.
Fields§
§files_analyzed: usizeFiles included in the health analysis.
functions_analyzed: usizeFunctions and template units checked for threshold findings across the
analyzed files. Synthetic module-scope units are excluded. Cyclomatic
aggregates include module units too; vital_signs.cyclomatic_population
reports the disjoint authored-function, module, and template populations
behind those aggregates.
functions_above_threshold: usizeFunctions exceeding at least one complexity or CRAP threshold.
max_cyclomatic_threshold: u16Global cyclomatic-complexity ceiling for this run.
max_cognitive_threshold: u16Global cognitive-complexity ceiling for this run.
max_crap_threshold: f64Global CRAP-score ceiling for this run.
max_unit_size_threshold: u32Effective global unit-size ceiling (health.maxUnitSize, maximum
function length in lines) for this run. Sits alongside the other three
max_*_threshold siblings so a consumer reading the summary sees every
configured threshold. Per-file thresholdOverrides are not reflected
here; this is the global default.
files_scored: Option<usize>Files with a computed maintainability score; absent when file scoring did not run.
average_maintainability: Option<f64>Mean maintainability index over scored files (0-100).
coverage_model: Option<CoverageModel>Coverage model behind the CRAP scores, when coverage was used.
coverage_input_format: Option<CoverageInputFormat>Input format of the measured coverage (istanbul or v8). Present
only with coverage_model: "istanbul".
coverage_source_consistency: Option<CoverageSourceConsistency>Whether CRAP findings mix coverage sources.
istanbul_matched: Option<usize>Functions matched against the Istanbul coverage file, in Istanbul mode.
istanbul_total: Option<usize>Functions in the Istanbul coverage file, in Istanbul mode.
istanbul_files_matched: Option<usize>Analyzed files the Istanbul coverage file carried an entry for.
Read against istanbul_files_total, this separates a coverage file
that did not join from code the coverage file says nothing ran in.
istanbul_files_total: Option<usize>Files described by the Istanbul coverage file, joined or not.
severity_critical_count: usizeFindings with critical severity.
severity_high_count: usizeFindings with high severity.
severity_moderate_count: usizeFindings with moderate severity.
baseline_staleness: Option<BaselineStaleness>Baseline staleness data, present only when a baseline was loaded.