Skip to main content

score_codebase_with_pagerank

Function score_codebase_with_pagerank 

Source
pub fn score_codebase_with_pagerank(
    contracts: &[(String, &Contract)],
    binding: &BindingRegistry,
    pagerank: Option<&HashMap<String, f64>>,
) -> CodebaseScore
Expand description

Score a codebase with pagerank-weighted gap analysis.

drift_override provides a pre-computed CD5 drift score (0.0-1.0). Use super::drift::compute_drift + super::drift::detect_stale_contracts to compute it from git timestamps. Pass None to default to 1.0 (no drift).