fix(biome_js_analyze): mark noThisInStatic fix as unsafe#10588
Conversation
|
❌ Automation signalsActivity patterns show signs of automation. This is an automated analysis by AgentScan |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
WalkthroughThis PR reclassifies the Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
The
noThisInStaticautofix is now marked unsafe, since replacingthisin a static context can change behavior.Why this matters
Reported in #10278: the rule's fix was classified
Safe, so it applied automatically. Rewritingthisreferences inside a static member is not always behavior-preserving (for example whenthisrefers to the class via a getter/inheritance chain), so the fix belongs in the unsafe tier where the user opts in.Changes
noThisInStatic'sfix_kindfromSafetoUnsafeand update the rule's test snapshots accordingly.Testing
Updated
invalid.jsspec and snapshot reflect the unsafe fix classification.Fixes #10278
AI was used for assistance.