Repository navigation
chore(lint): bring orcad-managed-tunnel-manager.ts back under max-lines - #30921
Merged
Merged
Conversation
Move the 'recorded tunnel still matches this build' check into orcad-managed-tunnel-active.ts as activeTunnelMatches(). No behaviour change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Main's lint fails for every PR:
src/main/managed-server/lifecycle/orcad-managed-tunnel-manager.tsgrew to 301 counted lines (limit 300) after #30888 and #30891 landed.Before:
static analysis and typecheckfails 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
ensureManagedTunnelmoves, unchanged, intoorcad-managed-tunnel-active.tsasactiveTunnelMatches(), 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-linesdisable 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 passpnpm tc:node: cleanpnpm exec oxlint: 0 errorspnpm run check:code-quality:changed: passedCI-only fix; merged without waiting on the backed-up queue per owner instruction.