Skip to content

fix(ci): preserve rename boundaries in React Doctor gate - #32159

Merged
nwparker merged 3 commits into
mainfrom
nwparker/react-doctor-rename-lines
Oct 23, 2026
Merged

nwparker merged 3 commits into
mainfrom
nwparker/react-doctor-rename-lines

Conversation

@nwparker

@nwparker nwparker commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

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.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a78a456-244a-4b50-9691-0084fc194141
📥 Commits

Reviewing files that changed from the base of the PR and between 2821322 and 379e25a.

📒 Files selected for processing: 1
  • config/scripts/moved-code-normalization-budget.test.mjs

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: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning 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 Warning 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 Passed checks: 3 passed
Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit c089ca5 into main Oct 23, 2026
33 checks passed
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