Skip to content

fix(lint): exempt the browser-pane markup tests from the shape-name rule - #21637

Merged
Jinwoo-H merged 1 commit into
mainfrom
fix-anti-slop-markup-test-exemption
Sep 19, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
fix-anti-slop-markup-test-exemption

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8

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:153 names the markup overlay's payload key shapes, and anti-slop/no-shape-in-symbol-names flags it. The rule already exempts browser-pane/annotate/**, where MarkupOverlay.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 the static analysis job 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-warnings exits 1 on line 153) and after (exit 0); config formatted.

`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
@coderabbitai

coderabbitai Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: ae24a9f1-4aca-4e15-9997-a2d986383323

📥 Commits

Reviewing files that changed from the base of the PR and between 605a4ef and cd019e2.

📒 Files selected for processing (1)
  • config/oxlint-anti-slop.json

Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

The configuration adds an override for **/browser-pane/*.markup.test.tsx. The override disables anti-slop/no-shape-in-symbol-names. A comment explains that these tests use shapes as the domain-term payload key in MarkupOverlay.onComplete.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to cd019

This change only relaxes a naming lint rule for a specific set of browser-pane markup test files, where shapes is a legitimate domain term. There is no runtime or user-facing behavior change and no remaining merge-blocking concern.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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 is… Use the repository template. Add a linked issue in the Fixes # section, write an ELI5 summary, add N/A with a reason under Visual Proof because there is no UI change, complete the Testing and checklist sections, and address AI Disclosur…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: exempting browser-pane markup tests from the shape-name lint rule.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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: Description check

Explanation

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 Fixes # section, write an ELI5 summary, add N/A with a reason under Visual Proof because there is no UI change, complete the Testing and checklist sections, and address AI Disclosure, Review, Agent skill upstream boundary, and Notes.

  • Fix all pre-merge checks with AI

Warning

Some tools did not complete. Review the errors below.

🔧 Biome (2.5.11)
config/oxlint-anti-slop.json

File 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.

❤️ Share

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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • anti-slop/no-shape-in-symbol-names exemption for browser-pane markup tests — adds one overrides entry in config/oxlint-anti-slop.json disabling the rule for **/browser-pane/*.markup.test.tsx, with a comment noting shapes is the domain payload key of MarkupOverlay.onComplete (already exempt under browser-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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Merging with two root shards red: both failures are main's own and reproduce on main's tip without this branch — pane-title-update-global-scan-budget.test.tsx:397 (since 340627f3a3, #21540) and src/relay/omp-fresh-launch-environment.test.ts:94 (since 605a4ef868, #20622). This PR changes one lint-config block; its static analysis job is green.

@Jinwoo-H
Jinwoo-H merged commit 50f507b into main Sep 19, 2026
28 of 31 checks passed
@Jinwoo-H
Jinwoo-H deleted the fix-anti-slop-markup-test-exemption branch September 19, 2026 08:57
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