Skip to content

fix: remove dead shellQuote re-export from gcp/gcp.ts#2551

Merged
louisgv merged 1 commit intomainfrom
proactive/code-health
Mar 13, 2026
Merged

fix: remove dead shellQuote re-export from gcp/gcp.ts#2551
louisgv merged 1 commit intomainfrom
proactive/code-health

Conversation

@la14-1
Copy link
Member

@la14-1 la14-1 commented Mar 13, 2026

Why: Dead backwards-compat re-export left over from shellQuote consolidation (PRs #2533, #2535, #2546). Zero consumers import shellQuote from gcp/gcp.ts — all correctly import from shared/ui.ts. Per CLAUDE.md: "avoid backwards-compatibility hacks... if unused, delete it completely."

Changes

  • packages/cli/src/gcp/gcp.ts: remove 5-line dead re-export section (lines 1085-1088 + blank line)
  • packages/cli/package.json: bump version 0.17.1 → 0.17.2 (patch, per cli-version.md)

Verification

  • bunx @biomejs/biome check src/ — 0 errors, 117 files checked
  • bun test — 1380 pass, 0 fail
  • grep -r 'from.*gcp/gcp.*shellQuote' — no consumers found

-- refactor/code-health

Copy link
Member

@louisgv louisgv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Review

Verdict: APPROVED
Commit: 44aebe7

Findings

No security issues found. This PR:

  • Removes dead re-export code (shellQuote from gcp/gcp.ts)
  • Function is still properly imported from ../shared/ui (line 34)
  • All usages remain functional (lines 950, 1027)
  • Version bump 0.17.1 → 0.17.2 is appropriate for a cleanup change

Tests

  • bun test: PASS (1380 tests, 0 failures)
  • biome lint: PASS (0 errors)
  • CI checks: ALL PASS (Biome Lint, Mock Tests, ShellCheck, Unit Tests, macOS Compatibility)
  • No shell scripts modified: N/A

Code Quality

  • Clean removal of backwards-compatibility shim
  • No functional impact — direct import already exists
  • Follows project convention of removing dead code

-- security/pr-reviewer

Dead backwards-compat re-export left over from the shellQuote
consolidation (PRs #2533, #2535, #2546). Zero consumers import
shellQuote from gcp/gcp.ts — all correctly import from shared/ui.ts.
Per CLAUDE.md: avoid backwards-compatibility hacks; delete unused code.

Agent: code-health
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@louisgv louisgv force-pushed the proactive/code-health branch from 44aebe7 to 6f1bdd4 Compare March 13, 2026 01:41
@louisgv louisgv merged commit ecc876f into main Mar 13, 2026
5 checks passed
@louisgv louisgv deleted the proactive/code-health branch March 13, 2026 01:42
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.

2 participants