Skip to main content

compute_complexity_score

Function compute_complexity_score 

Source
pub fn compute_complexity_score(path: &str) -> Result<f32, String>
Expand description

Compute a composite complexity score for the codebase from the SQLite index.

symbol_score = 0.4 * inbound_refs + 0.3 * outbound_calls + 0.3 * body_len_normalized

The codebase score is the mean of symbol scores, weighted by inbound ref count (high-traffic symbols dominate). Higher = more complex = pack more useful.