Skip to content

chore(mobile): remove stale max-lines exceptions - #19366

Merged
nwparker merged 1 commit into
mainfrom
nwparker/mobile-file-pregnant-man
Sep 7, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/mobile-file-pregnant-man

Conversation

@nwparker

@nwparker nwparker commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 2 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​35 $\color{#cf222e}{\Huge{\mathbf{−}}}$​35

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.json and their matching entries in config/max-lines-baseline.txt:

  • app/h/*/files/*.tsx
  • app/h/*/source-control/*.tsx
  • app/index.tsx
  • scripts/mock-server.ts
  • src/transport/rpc-client.ts

Why

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:

  • Targeted oxlint passed for the five targets and their existing UI, RPC, and mock-server modules.
  • pnpm run check:max-lines-ratchet passed.
  • ORCA_BACKGROUND_LAUNCH=1 node_modules/.bin/vitest run --config config/vitest.config.ts config/scripts/check-max-lines-ratchet.test.mjs passed: 15 tests.
  • Formatting and git diff --check passed.
  • Mobile test collection was blocked by missing mobile dependencies (expo/tsconfig.base.json could 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

  • Not applicable; no agent skill content changed.

Checklist

  • This PR is small and focused.
  • Explained what changed and why, including ELI5.
  • Visual proof is N/A with reason.
  • Reviewed for correctness, security, and performance.
  • Cross-platform, SSH/remote, and path/shortcut impact considered: runtime behavior is unchanged.
  • Full lint, typecheck, test, and build pass; only targeted local validation was run as documented above.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 4 seconds.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 3f54c2eb-e83c-424e-8a3f-f6d1204cdf11

📥 Commits

Reviewing files that changed from the base of the PR and between d0506bf and 6e8c3c2.

📒 Files selected for processing (2)
  • config/max-lines-baseline.txt
  • mobile/.oxlintrc.json

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.

@nwparker
nwparker merged commit 2265fce into main Sep 7, 2026
6 checks passed
@nwparker
nwparker deleted the nwparker/mobile-file-pregnant-man branch September 7, 2026 21:54

@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

  • Remove five stale max-lines overrides from mobile/.oxlintrc.json and their matching mobile-config entries in config/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.

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

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