pub const RISK_SCORE_VERSION: u32 = 2;Available on crate feature
vcs-git only.Expand description
Version of the risk-score computation, covering both formulas.
A single risk_score_version is stamped on every file’s output
regardless of the active super::RiskFormula (the weighted sum or
the percentile blend), and the persistent VCS cache keys reuse on it
(see super::cache). Increment on any change that can alter an
emitted risk_score, including:
- the weighted formula (
weighted): its term set, weights, or categorical bumps below; and - the percentile blend (
apply_percentile): its extractor set, mid-rank scaling, or normalization.
2 added the change- and co-change-entropy terms to both formulas
(issue #330).