Skip to main content

Module hotspot

Module hotspot 

Source
Available on crate feature vcs-git only.
Expand description

Complexity × churn “hotspot” score (Tornhill; Nagappan & Ball).

A hotspot is a file that is both complex and changes often — the intersection the empirical work finds most defect-prone. It is only meaningful when an AST-derived complexity figure is available alongside the change history, so the field is Option<f64> on the serialized stats and is filled in by the consumer that has both halves (e.g. bca metrics --metrics cyclomatic,vcs).

Functions§

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