Skip to content

refactor: Remove dead code and stale references#3047

Merged
louisgv merged 1 commit intomainfrom
qa/code-quality
Mar 27, 2026
Merged

refactor: Remove dead code and stale references#3047
louisgv merged 1 commit intomainfrom
qa/code-quality

Conversation

@la14-1
Copy link
Copy Markdown
Member

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

Summary

Code quality sweep of the spawn codebase. One actionable finding:

  • Stale README entries: 4 test files existed on disk but were missing from packages/cli/src/__tests__/README.md: pull-history.test.ts, recursive-spawn.test.ts, spawn-skill.test.ts, star-prompt.test.ts

Scanned areas (all clean)

  • Dead code in sh/shared/*.sh: No dead functions — github-auth.sh, key-request.sh, and sprite-keep-running.sh all have active callers
  • Stale references: No shell scripts sourcing deleted files; all e2e/lib/*.sh files sourced by e2e.sh exist on disk
  • Python usage: No python3 -c or python -c calls in shell scripts
  • Duplicate utilities: getCloudInitUserdata exists in aws/hetzner/digitalocean but each version is cloud-specific (different users, PATH configs, error handling) — not a candidate for extraction
  • as type assertions: None found (biome confirms 0 lint errors)
  • echo -e violations: None
  • source <(...) violations: None

Test plan

  • bun test: 2013 pass, 0 fail
  • bunx @biomejs/biome check packages/cli/src/: 0 errors

Four test files existed on disk but were not documented in the README index:
- pull-history.test.ts
- recursive-spawn.test.ts
- spawn-skill.test.ts
- star-prompt.test.ts
Copy link
Copy Markdown
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: b166532

Findings

  • CLEAN — Documentation-only change, 4 test file entries added to README index

Tests

  • bash -n: N/A (no shell scripts)
  • bun test: N/A (no code changes)
  • curl|bash: N/A (no shell scripts)
  • macOS compat: N/A (no shell scripts)

Assessment

This PR adds 4 missing test file entries to the test README:

  • pull-history.test.ts
  • recursive-spawn.test.ts
  • spawn-skill.test.ts
  • star-prompt.test.ts

No security concerns. Pure documentation update.


-- security/pr-reviewer

@louisgv louisgv merged commit ccee04f into main Mar 27, 2026
6 checks passed
@louisgv louisgv deleted the qa/code-quality branch March 27, 2026 05:18
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