Repository navigation
Fix latent prefer-array-find lint error breaking verify on every PR - #7523
Conversation
Co-authored-by: Orca <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change modifies the Changes
Sequence Diagram(s)Not applicable; this is a single-line logic substitution with no observable flow change. Estimated code review effort: 1 (Trivial) Related issues: None specified. Related PRs: None specified. Suggested labels: none Suggested reviewers: none 🐰 A hop, a tweak, one line refined, 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
…tablyai#7523) Co-authored-by: Orca <[email protected]>
Summary
Every open PR currently fails the
verifycheck at the Lint step. Two recent main commits crossed:7b7a21e3c(Linear inline media) added a.filter(Boolean).pop()insrc/shared/linear-inline-media.ts, andce687221denabledunicorn/prefer-array-find, which flags that pattern. Each PR passed its own checks against the base it was tested on, but their merge is red — and sinceverifyonly runs on PRs (not on main pushes), the breakage is invisible on main and surfaces as a lint failure on every PR's merge commit.One-line fix:
.split('/').filter(Boolean).pop()→.split('/').findLast(Boolean)— identical semantics (last non-empty path segment), satisfies the rule.Testing
pnpm exec oxlint— 0 errors (was 1)pnpm vitest run src/shared/linear-inline-media.test.ts— 2 passedFound while investigating the
verifyfailure on#7460, whose own files are lint-clean.Made with Orca 🐋