Skip to main content

review_diff

Function review_diff 

Source
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:

  1. Parse diff -> changed functions
  2. Load call graph + test chunks (once, shared by impact + risk)
  3. Impact analysis -> callers + tests
  4. Risk scoring -> per-function risk
  5. Note matching -> relevant notes for changed files (non-fatal)
  6. Staleness check -> warn if changed files are stale (non-fatal)