Repository navigation
fix(lint): exempt the browser-pane markup tests from the shape-name rule - #21637
Conversation
`0e1a5f39d0` added `ClientHostedBrowserPagePane.markup.test.tsx`, which drives the markup overlay's API and so names its payload key `shapes`. The rule already exempts `browser-pane/annotate/**`, where that key is defined, but the test lives one directory up, so every pull request's static analysis has failed on main's own file since that commit. Extend the exemption to the markup tests beside annotate/, the narrowest pattern that covers the file; no symbol changes. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe configuration adds an override for Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This change only relaxes a naming lint rule for a specific set of browser-pane markup test files, where 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the lint failure, the configuration change, the reason for the exemption, and the verification steps. It does not follow the required template and omits the required linked issue, visual-proof statement, checklist details, and several review sections. Resolution Use the repository template. Add a linked issue in the
Warning Some tools did not complete. Review the errors below. 🔧 Biome (2.5.11)config/oxlint-anti-slop.jsonFile contains syntax errors that prevent linting: Line 59: Expected an array, an object, or a literal but instead found '// mock-descendant-sweep.ts (daemon and relay) is a test-o; Line 62: End of file expected; Line 67: End of file expected; Line 78: End of file expected; Line 83: End of file expected; Line 84: End of file expected; Line 89: End of file expected; Line 92: End of file expected; Line 97: End of file expected; Line 100: End of file expected; Line 109: End of file expected; Line 112: End of file expected; Line 117: End of file expected; Line 120: End of file expected; Line 126: End of file expected 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 |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
anti-slop/no-shape-in-symbol-namesexemption for browser-pane markup tests — adds oneoverridesentry inconfig/oxlint-anti-slop.jsondisabling the rule for**/browser-pane/*.markup.test.tsx, with a comment notingshapesis the domain payload key ofMarkupOverlay.onComplete(already exempt underbrowser-pane/annotate/**).
The change is narrow and correct. I reproduced the failure at ClientHostedBrowserPagePane.markup.test.tsx:153 by deleting the override (exit 1), confirmed the override clears it (exit 0), and ran the full oxlint --config config/oxlint-anti-slop.json src config tests mobile --deny-warnings job — 0 warnings / 0 errors over 25774 files. Only one file matches the glob, and the test contains a single shape occurrence, so the file-scoped exemption has minimal blast radius and matches the existing config-scoped pattern used elsewhere in this file.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Merging with two root shards red: both failures are main's own and reproduce on main's tip without this branch — |

What this is
Main's static analysis is red for every pull request since
0e1a5f39d0(#21625's area, the client-hosted markup feature):src/renderer/src/components/browser-pane/ClientHostedBrowserPagePane.markup.test.tsx:153names the markup overlay's payload keyshapes, andanti-slop/no-shape-in-symbol-namesflags it. The rule already exemptsbrowser-pane/annotate/**, whereMarkupOverlay.onComplete({ imageElement, shapes })defines that key as the domain term; the new test sits one directory up. The last two merged PRs (#21617, #21625) and every open one fail thestatic analysisjob on this line.What changed
One config override in
config/oxlint-anti-slop.json: the same rule turned off for**/browser-pane/*.markup.test.tsx, with a comment saying why. No symbol renamed, no directive in source.Checks
Reproduced before (
oxlint --config config/oxlint-anti-slop.json <file> --deny-warningsexits 1 on line 153) and after (exit 0); config formatted.