Repository navigation
chore(mobile): remove stale max-lines exceptions - #19366
Conversation
|
Warning Review limit reachedNext included review available in 4 seconds. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
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
- Remove five stale
max-linesoverrides frommobile/.oxlintrc.jsonand their matchingmobile-configentries inconfig/max-lines-baseline.txt. The five targets (app/h/*/files/*.tsx,app/h/*/source-control/*.tsx,app/index.tsx,scripts/mock-server.ts,src/transport/rpc-client.ts) have already been split into smaller modules and now sit well under their default budgets (13/24/3/138/65 lines vs 400/400/400/300/300).
Verification: node config/scripts/check-max-lines-ratchet.mjs passes (7 grandfathered suppressions, no stale entries), so the baseline and the oxlint overrides stay in lockstep. The remaining override (src/terminal/TerminalWebView.tsx, max: 379) is stricter than the 400-line default and is correctly not a baseline entry.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

ELI5
Restore the normal mobile file-size limits now that the five formerly oversized targets have already been split into smaller modules.
What Changed
Remove five stale overrides from
mobile/.oxlintrc.jsonand their matching entries inconfig/max-lines-baseline.txt:app/h/*/files/*.tsxapp/h/*/source-control/*.tsxapp/index.tsxscripts/mock-server.tssrc/transport/rpc-client.tsWhy
These targets already fit the default 300-line TypeScript / 400-line TSX budgets. Removing the exceptions prevents them from growing past those limits again. Runtime source and exports are unchanged.
Linked Issue
No issue supplied; this worktree has no linked Linear issue.
Visual Proof
N/A — only lint configuration and its baseline changed.
Testing
Validated on macOS:
pnpm run check:max-lines-ratchetpassed.ORCA_BACKGROUND_LAUNCH=1 node_modules/.bin/vitest run --config config/vitest.config.ts config/scripts/check-max-lines-ratchet.test.mjspassed: 15 tests.git diff --checkpassed.expo/tsconfig.base.jsoncould not resolve); no mobile test assertions ran.No new tests added for this configuration-only removal. Full lint, typecheck, build, and platform runs were not run locally.
Review
Independent parallel audits confirmed the exceptions are stale and runtime source is unchanged.
Agent skill upstream boundary
Checklist