Repository navigation
fix(lint): bring connector-cloud.ts back under max-lines - #48549
Merged
Merged
Conversation
#47381 left it at 306 counted lines, failing Lint on every PR.
Jinwoo-H
pushed a commit
that referenced
this pull request
Nov 24, 2026
#47381 left it at 306 counted lines, failing Lint on every PR. Co-authored-by: m4air <[email protected]>
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.
ELI5
Lint is failing on every PR because
connector-cloud.tsgrew past the 300-line limit. This trims it back under the limit without changing behavior.What Changed
src/main/connector-cloud/connector-cloud.tsdrops from 306 to 300 counted lines:transportfield's type now fits on one linewithConnectionusesthis.clientdirectly instead of copying it into a local firstbotListFactsreadscloudFeatures()and the needs-sign-in check into locals once, instead of repeating themWhy
#47381 left the file at 306 lines, so the Lint step in static analysis fails on main and on every open PR.
Linked Issue
N/A (main CI fix)
Visual Proof
N/A, no UI change.
Testing
pnpm check:changedpasses (25 checks, including lint, typecheck and related tests).Performance
None, because this only restructures code. It now calls
cloudFeatures()once perbotListFactscall instead of three times.Risk
Very low: a behavior-preserving restructure of one file. Undo with a plain revert.
Level: Low
Review
Self-reviewed. This is a mechanical CI fix.
Agent skill upstream boundary
Notes
No platform, SSH, mobile or workspace impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)