pub fn validate_bus_factor_threshold(threshold: f64) -> Result<f64, Error>Available on crate feature
vcs-git only.Expand description
Validate a bus-factor coverage threshold, accepting only a finite
value in the open interval (0, 1).
A 0 would make the first key-developer removal “exceed” the
abandonment fraction (bus factor always 1) and a 1 could never be
exceeded (bus factor = every author), so both extremes are user errors
rather than values to silently clamp. The single source of truth
shared by every front end.
§Errors
Returns Error::InvalidBusFactorThreshold when threshold is
non-finite or outside (0, 1).