Skip to content

chore(deadcode): purge dead exports and guard the count - #1034

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-6797-dead-export-purge-ts-prune-flags-870-candidates-verify
Sep 15, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
cl-6797-dead-export-purge-ts-prune-flags-870-candidates-verify

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Deletes consumer-less exports with a reasoned allowlist for entry points and public surface
  • Removes dead barrel re-export layers with no remaining importers
  • Adds a dead-export check to the gate so the count cannot silently regrow

Verification

  • bun run check passes (lint, typecheck, build, guarded suite)
  • Guard verified to fail on new dead exports and pass on the cleaned tree

Fixes CL-6797

@linear-code

linear-code Bot commented Sep 14, 2026

Copy link
Copy Markdown

CL-6797

Triage the ts-prune report; allowlist deliberate-public-surface exports with reasons. Delete consumer-less exports including fully-dead barrel files. Wire the dead-export check into the package check script and CI so the count cannot silently regrow.
@TheGreatAxios
TheGreatAxios force-pushed the cl-6797-dead-export-purge-ts-prune-flags-870-candidates-verify branch from 9dd94de to bc47a37 Compare September 14, 2026 18:05
…#1046)

* fix(deadcode): scope dead-export exemptions and warn on stale entries

Whole-file exemptions hide new dead exports in the covered modules, so the guard can only see what it already knows. Exact-name entries keep the exemption set precise, and stale-entry warnings keep exemptions from outliving the code they cover.

* test(deadcode): add keeper tests for the dead-export guard (#1061)

* test(deadcode): add keeper tests for the dead-export guard

* fix(deadcode): harden dead-export guard against silent weakening (#1065)

* fix(deadcode): harden dead-export guard against silent weakening

* fix(deadcode): pin guard scan invocation to exact args

parseGuardConfig required only that tsPruneArgs contain the -p tsconfig pair, so narrowing flags like -i/--ignore shrank the scan while the tsc file-count floor stayed flat. Require exact ["-p", "<tsconfig>"] equality so the pin actually pins. Also reword ownership headers to match presence-only enforcement.
…urge-ts-prune-flags-870-candidates-verify

# Conflicts:
#	src/tui/geometry/index.ts
@TheGreatAxios
TheGreatAxios merged commit 9b073d8 into main Sep 15, 2026
13 checks passed
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