Reduce React Doctor false positives - #1634
Open
aidenybai wants to merge 4 commits into
Open
Conversation
commit: |
Contributor
Interactive terminal E2ETerminal Control verified the built CLI at
|
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 90aa968. Configure here.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
Why
An exhaustive scan and source audit of 207 Thinky 3D viewer projects found 162 confirmed false-positive diagnostics. The detector assumptions did not consistently account for aliasing, stable lifecycle guards, non-escaping values, staged async work, or safe data-flow patterns.
The corpus now reports 712 diagnostics instead of 874. The remaining findings are direct rule-contract matches or evidence-required candidates; this does not claim that unknown false positives or false negatives are mathematically impossible.
Validation
git diff --checkNote
Medium Risk
Touches security and performance detector logic (especially
dangerous-html-sinkand Three.js rules), so over-narrowing could hide real findings. Risk is tempered by pinned audit fixtures and broad regression coverage.Overview
Reduces false positives across Three.js, JS performance, security, and async rules after an exhaustive audit of 207 Thinky 3D projects (163 confirmed FPs, 1 true positive).
Detectors now better recognize stable lifecycle guards, intentional async sequencing, non-escaping values, renderer aliases, and safe DOM data flows—cutting corpus diagnostics from 874 to 712.
Adds the pinned
thinky-threejs-v14-auditexact-callsite corpus (regressions + one true positive), documents how to regenerate it, and ships a patch changeset.Reviewed by Cursor Bugbot for commit 6b14d76. Bugbot is set up for automated code reviews on this repo. Configure here.