pub fn review_diff(
store: &Store,
diff_text: &str,
root: &Path,
) -> Result<Option<ReviewResult>, AnalysisError>Expand description
Analyze a unified diff and produce a comprehensive review.
Steps:
- Parse diff -> changed functions
- Load call graph + test chunks (once, shared by impact + risk)
- Impact analysis -> callers + tests
- Risk scoring -> per-function risk
- Note matching -> relevant notes for changed files (non-fatal)
- Staleness check -> warn if changed files are stale (non-fatal)