Repository navigation
chore(deadcode): remove stale Knip config scaffolding - #122069
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 10:52 AM ET / 14:52 UTC. ClawSweeper reviewWhat this changesThis PR removes three duplicated Knip scan-root entries and three obsolete comments from the internal dead-code audit configuration. Merge readinessKeep this maintainer PR open: current main still contains the duplicate roots and stale comment, while the branch preserves one canonical declaration for every audit configuration. No source-level correctness finding; exact-head CI needs to be green before merge. Priority: P3 Review scores
Verification
How this fits togetherKnip configuration declares executable roots and intentional unused-export exceptions for repository dead-code audits. Package scripts and audit wrappers load these configurations and report findings to maintainers. flowchart LR
A[Dead-code commands] --> B[Knip configurations]
B --> C[Declared scan roots]
B --> D[Export exceptions]
C --> E[Knip analysis]
D --> E
E --> F[Maintainer audit result]
Before merge
Agent review detailsSecurityNone. PR surfaceOther -6. Total -6 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the deletion once an exact-head dead-code CI run confirms the three configuration roots remain declared once each and all audit scans stay clean. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a static tooling cleanup, and source inspection directly shows the duplicate declarations on current main. Is this the best way to solve the issue? Yes: deleting only the second repeated declarations and obsolete comments is the narrowest maintainable fix; a cardinality-only test would duplicate the scanner’s configuration behavior without protecting a separate contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6472d22a77f4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Removes stale Knip configuration scaffolding that duplicated three already-registered audit entrypoints and left two comments describing an export suppression that no longer exists.
Why This Change Was Made
The audit entrypoints were first registered by #108648 (
906c7332d20) and then accidentally repeated by #108717 (7e1d93d36d7). The collection-review suppression was added indb879e73fa9; #121751 (9175530fc1a) localized that helper and removed the suppression key but left its comments behind. This change removes only those redundant lines and leaves the canonical entries and current suppressions unchanged.AI-assisted cleanup. No agent transcript is included.
User Impact
No runtime or user-visible behavior changes. The dead-code scanner configuration is smaller and has one canonical declaration for each affected entrypoint.
Production LOC: +0/-0 (net 0) | Tests: +0/-0 | Configuration: +0/-6
Evidence
pnpm deadcode:exports— production, full-tree, and script unused-export scans all passed with 0 findings.pnpm deadcode:full— passed with 0 findings.node scripts/check-changed.mjs— passed the tooling lane; remote providers were unavailable, so the repository wrapper used its documented local fallback.git diff --check— passed.