pub fn collect_file_metrics(cpg: &CodePropertyGraph) -> Vec<FileMetric>
Creates per‑file aggregate metrics.