Skip to content

refactor(review): single postprocess module for review and scan (#610) - #614

Merged
ajianaz merged 1 commit into
developfrom
refactor/postprocess-610
Oct 9, 2026
Merged

ajianaz merged 1 commit into
developfrom
refactor/postprocess-610

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

What

Adds src/engine/postprocess.rs with postprocess(issues, &Source, &Config) (Source::Diff(&[FileChunk]) | Source::Files(&[FileEntry])). The private filters moved there (with their unit tests). review_diff_inner (normal path and LLM-failure fallback) and scan::finalize_issues now each make one call. Per-filter applicability is documented in the module docs.

Why

The filter order was duplicated (review, its fallback, scan), so fixes had to land in several places. Step 1 of #610; MCP and the other items are untouched.

Testing

  • New tests at the postprocess interface for Diff and Files: cora-ignore marker, ignore.rules, same-topic alias merge, diff-only filters not applied to Files.
  • cargo fmt, clippy --all-targets -D warnings, full cargo test x3: green.

Refs #610

🤖 Generated with Claude Code

Move the finding filter pipeline into engine::postprocess with one entry
point, postprocess(issues, &Source, &Config), where Source is Diff(chunks)
or Files(entries). review (including the LLM-failure fallback) and scan each
make a single call. Diff-only filters apply only to Source::Diff.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@ajianaz
ajianaz merged commit fb0d76a into develop Oct 9, 2026
17 checks passed
@ajianaz
ajianaz deleted the refactor/postprocess-610 branch October 16, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant