Skip to content

chore(lint): bring orcad-managed-tunnel-manager.ts back under max-lines - #30921

Merged
Jinwoo-H merged 1 commit into
mainfrom
fix-tunnel-manager-max-lines
Oct 19, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
fix-tunnel-manager-max-lines

Conversation

@Jinwoo-H

Copy link
Copy Markdown
Contributor

Summary

Main's lint fails for every PR: src/main/managed-server/lifecycle/orcad-managed-tunnel-manager.ts grew to 301 counted lines (limit 300) after #30888 and #30891 landed.

Before: static analysis and typecheck fails on every PR with "File has too many lines (301)".
After: the file is back under the limit; lint passes.

Mechanism: the "recorded tunnel already matches this build, reuse it" check inside ensureManagedTunnel moves, unchanged, into orcad-managed-tunnel-active.ts as activeTunnelMatches(), next to the other active-tunnel rules (managedTunnelAccess, recordActiveOrcadTunnel). Same six comparisons, same order, same early return. No behaviour change.

Why this over alternatives: raising the limit or adding a max-lines disable is not allowed in this repo; this is the smallest move that keeps the file's structure and puts the predicate with its siblings.

Testing

  • pnpm test --maxWorkers=2 src/main/managed-server/lifecycle/: 24 files, 296 tests pass
  • pnpm tc:node: clean
  • full pnpm exec oxlint: 0 errors
  • pnpm run check:code-quality:changed: passed

CI-only fix; merged without waiting on the backed-up queue per owner instruction.

Move the 'recorded tunnel still matches this build' check into
orcad-managed-tunnel-active.ts as activeTunnelMatches(). No behaviour change.
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