fix(review): show linter run summaries in reviews #40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-11-linter-review-section"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
RGR evidence
RED:
Reviewer-driven RED:
GREEN / verification:
Closes #11
This PR introduces linter run summaries to the review process, enhancing transparency by showing which linters ran, their findings, and any skips or failures. The changes appear well-structured and include necessary tests, but ensure all new fields and functions are consistently integrated across the codebase.
Walkthrough
linter_runsthrough the review process.LinterRunSummaryandLinterRunStatustypes, and integrated linter summaries into the review body.lint_workspace_report_viato return detailed linter run reports.Pre-merge checks
@ -1,6 +1,7 @@//! File-extension-based routing from a PR's changed files to the linters🟡 Warning: The
lint_workspace_report_viafunction now returns aLintWorkspaceReportcontaining both findings and run summaries. Ensure that this change is reflected in all parts of the code that consume this function's output.Verified. This is reflected at the only production call site:
prepare_and_lintnow callslint_workspace_report_via, destructures bothfindingsandlinter_runs, stores both inLintPhaseOutput, and passeslinter_runsintoReviewArgsso the review body can render them. Existinglint_workspace_viaremains available for callers that only need findings.cargo check -p ar-orchestratorpassed after the integration.@ -16,6 +16,8 @@ pub enum RunnerError {},🟡 Warning: The
RunnerErrorenum now includes aSkippedvariant. Ensure that all match statements handlingRunnerErrorare updated to handle this new variant appropriately.Verified. The new
Skippedvariant is handled in both batch paths:run_allexplicitly swallowsRunnerError::Skipped(_)to preserve existing findings-only behavior, whilerun_all_with_statusconverts it intoLinterRunStatus::Skipped(reason)for the review-body summary. Thear-reviewrouting adapter also mapsar_tools::runner::LinterRunStatus::Skippedinto the review pipeline summary type. Focused tests cover both host missing-binary and sandbox exit-127 skipped paths.