Skip to main content

weighted

Function weighted 

Source
pub fn weighted(input: &ScoreInput) -> f64
Available on crate feature vcs-git only.
Expand description

Compute the weighted composite risk score for one file.

See the module docs for the term-by-term literature grounding. The f64 casts of count fields are exact for every realistic input (counts never exceed 2^53) and the score is ordinal, so the lints are allowed locally with that justification.