Skip to content

refactor: remove in-scope legacy lint gate suppressions - #135

Merged
ElbertePlinio merged 3 commits into
mainfrom
refactor/95-remove-legacy-lint-suppressions
Sep 9, 2026
Merged

ElbertePlinio merged 3 commits into
mainfrom
refactor/95-remove-legacy-lint-suppressions

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Removes in-scope Legacy gate debt: pickforge/pickforge#60 ESLint suppressions by splitting production functions into named units. No raised complexity-gate limits and no replacement suppressions. oxlint (#72) is not adopted here.

Baseline on the pre-change tree: 22 comments, 26 rule findings.

Removed (this PR)

File:line Rules Function complexity-gate before
packages/cli/src/provision/executor.ts:391 max-lines-per-function, complexity executeProvisioning complexity 29, depth 5, lines 134
packages/cli/src/provision/executor.ts:461 max-depth executeProvisioning (denied-consent retain path) same function, depth 5
packages/cli/src/commands/android.ts:279 complexity runAndroidAdb no FAIL (eslint-only)
packages/browser/src/devtools-mcp.ts:404 max-lines-per-function, complexity runDevtoolsMcpRelay complexity 30, lines 153
packages/browser/src/ndjson.ts:53 complexity assertJsonRpcMessage bool_ops 4, complexity 24
packages/browser/src/ndjson.ts:337 complexity pumpJsonRpcNdjson no FAIL (eslint-only)
packages/core/src/takeover.ts:333 complexity acquireHumanLease complexity 16
packages/core/src/storage.ts:139 complexity resolveRunStorage no FAIL (eslint-only)
packages/core/src/run-catalog.ts:127 max-lines-per-function, complexity readVerifiedRootFile bool_ops 5, complexity 40, lines 141
packages/core/src/proc.ts:70 max-lines-per-function runCommand lines 129
packages/core/src/proc.ts:76 max-lines-per-function runCommand promise body lines 123
packages/core/src/proc.ts:605 complexity stopProcessGroupVerified complexity 20
packages/core/src/redact.ts:153 complexity redactCookiePairs complexity 35

Focused tests added for JSON-RPC request/response shape checks and provisioning consent-decision failure.

Deferred (open lanes; left untouched)

File:line Rules Function complexity-gate Why
packages/desktop-linux/src/session.ts:507 max-depth acquireSessionVncLock depth 5 #111 session files
packages/desktop-linux/src/session.ts:652 complexity ensureSessionVnc callback (file FAIL nearby) #111
packages/cli/src/commands/session.ts:147 complexity runSessionCreate callback bool_ops 4, complexity 24 #111
packages/browser/src/session.ts:697 max-lines-per-function teardownBrowserSession lines 131 #111
packages/browser/src/session.ts:711 max-lines-per-function, complexity teardownBrowserSession lock callback complexity 25, lines 118 #111
packages/browser/test/session.test.ts:838 complexity supervisor reap-race test bool_ops 5, complexity 18 #111
packages/core/src/session.ts:222 complexity isSessionProcessAlive (eslint-only on this line) #111
packages/core/src/evidence.ts:1971 complexity pruneFinalizedEvidenceRuns (eslint-only on this line) #110 evidence/run
packages/core/src/evidence-sanitize.ts:208 complexity sanitizeNetworkFailure complexity 16 #110 evidence*

Those 9 comments / 10 rule findings stay until #110 and #111 land.

Validation

On this branch after rebase onto origin/main:

  • bun install --frozen-lockfile
  • bun run typecheck
  • bun run lint
  • bun run test:coverage (1498 passed, 4 skipped; All files 85.46% stmts)
  • bun run build
  • complexity-gate check --changed (PASS)

Refs #95 (nine suppressions in session and evidence files are deferred until #133 and #134 land; the issue stays open for that follow-up).

Remove in-scope #60 ESLint suppressions by extracting
named helpers for provisioning, adb, DevTools relay, JSON-RPC, storage,
catalog reads, process control, and cookie redaction.

Closes #95
@ElbertePlinio
ElbertePlinio merged commit 70c4f67 into main Sep 9, 2026
10 checks passed
@ElbertePlinio
ElbertePlinio deleted the refactor/95-remove-legacy-lint-suppressions branch September 9, 2026 13:43
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