pub fn compute(
authorship: &[FileAuthorship],
coverage_threshold: f64,
emit_author_details: bool,
author_hash_key: Option<&AuthorHashKey>,
) -> BusFactorAvailable on crate feature
vcs-git only.Expand description
Compute the bus-factor aggregate over every file’s authorship.
coverage_threshold is clamped into the open interval (0, 1)
defensively (front ends validate it); emit_author_details opts the
hashed key-developer lists into the output. author_hash_key, when
present, hardens those emitted ids into a keyed HMAC (issue #956)
without affecting the bus-factor count or the tie-break order, both of
which stay keyed on the unkeyed digest so they remain key-independent
and cache-replay-stable.