Skip to main content

hotspot_score

Function hotspot_score 

Source
pub fn hotspot_score(complexity_index: f64, churn_recent: u64) -> f64
Available on crate feature vcs-git only.
Expand description

Compute the hotspot score from a complexity index and recent churn.

complexity_index is supplied by the caller from whichever AST metric it treats as the complexity axis (the CLI uses the file-level cyclomatic sum, the conventional hotspot proxy). The product is ordinal, like the risk score: rank files by it, do not read absolute magnitudes.