You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): preserve rename boundaries in React Doctor gate - #32159
React Doctor’s changed-line scan limits its diff to renamed destinations, so moving an unchanged component can fail CI on existing diagnostics. Collect ranges with both rename paths, then apply the existing error threshold to a complete files-scope report. Files entering the checked scope and copied violations remain fully added.
The wrapper preserves the locked tool’s source extensions, validates report identities and coverage, and rejects failed, truncated or inconsistent scans.
Validation: 107 focused tests passed; changed-code-quality, Oxlint, and formatting passed. Real React Doctor controls cover unchanged renames, new side effects, copies, new files, and Astro errors. Two independent native reviews approved the exact final seven-file source. Full required CI, including the aggregate gate, passed. Fresh-main integration preserves all seven reviewed blobs.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
📝 Walkthrough
The changed-line collector now accepts a configurable path predicate and handles rename and copy destinations. The React Doctor script exports a main function that runs a JSON scan, validates the process result and report, and checks error diagnostics against added lines. The audit runner accepts configurable stdio. Tests cover changed-file cases and unsuccessful or incomplete scans.
Priority: ➖ Normal
Merge Risk:⚪ Minimal · up to 379e2
No actionable merge-blocking behavior is established for this CI gate.
Pre-merge checks: 3 · 2
Failed checks: 2 warnings
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 7 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check
The description explains the main change, scope, validation, and reported test results. It does not follow the required template and omits the required Linked Issue reference, Visual Proof or N/A stat…
Rewrite the description using the repository template. Add an actual issue link after “Fixes #”, state “N/A” with a reason for Visual Proof if applicable, document manual and automated testing with platforms, complete the AI Disclosure and …
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title "fix(ci): preserve rename boundaries in React Doctor gate" matches the main change: the changed-line scan now collects added-line ranges from both rename paths, and the React Doctor gate is …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "fix(ci): preserve rename boundaries in React Doctor gate" matches the main change: the changed-line scan now collects added-line ranges from both rename paths, and the React Doctor gate is rebuilt around a complete files-scope report. It uses a conventional commit prefix and is specific enough for a teammate scanning history. The title does not mention the report validation or the exit-code changes, but those are secondary to the main fix.
Full details: Description check
Explanation
The description explains the main change, scope, validation, and reported test results. It does not follow the required template and omits the required Linked Issue reference, Visual Proof or N/A statement, Testing checklist, AI Disclosure, Review, upstream-boundary declaration, Notes, and final Checklist.
Resolution
Rewrite the description using the repository template. Add an actual issue link after “Fixes #”, state “N/A” with a reason for Visual Proof if applicable, document manual and automated testing with platforms, complete the AI Disclosure and Agent skill upstream boundary sections, address security, cross-platform, SSH, mobile, compatibility, and performance considerations, and complete the Checklist.
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
React Doctor’s changed-line scan limits its diff to renamed destinations, so moving an unchanged component can fail CI on existing diagnostics. Collect ranges with both rename paths, then apply the existing error threshold to a complete files-scope report. Files entering the checked scope and copied violations remain fully added.
The wrapper preserves the locked tool’s source extensions, validates report identities and coverage, and rejects failed, truncated or inconsistent scans.
Validation: 107 focused tests passed; changed-code-quality, Oxlint, and formatting passed. Real React Doctor controls cover unchanged renames, new side effects, copies, new files, and Astro errors. Two independent native reviews approved the exact final seven-file source. Full required CI, including the aggregate gate, passed. Fresh-main integration preserves all seven reviewed blobs.