export const deadcode = {
    name: "deadcode",
    description: "Dead code detection — unused exports, unreachable code, orphaned files",
    content: `Find and report all dead code in the codebase.

## 1. Unused Exports
For every file in src/, app/, lib/, components/, utils/:
- List all exported functions, classes, constants, types
- Search codebase for imports of each export
- Flag exports that are never imported anywhere
- Exclude: index.ts re-exports, public API files, test utilities

## 2. Unused Files
- Find files that are never imported by any other file
- Check: components, utilities, types, constants
- Exclude: entry points (page.tsx, layout.tsx, route.ts), config files, test files

## 3. Unreachable Code
Scan for:
- Code after return/throw statements
- Conditions that are always true/false (if (false), if (true && false))
- Switch cases that can never match
- Catch blocks that catch impossible errors

## 4. Commented-Out Code
- Find blocks of commented-out code (not documentation comments)
- 3+ consecutive lines of commented code = flag it
- These should be deleted, not commented

## 5. Unused Variables
- Variables declared but never read
- Parameters that are never used
- Destructured properties that are never used

## 6. Dead CSS/Styles
If using CSS modules, Tailwind, or styled-components:
- Classes defined but never applied
- Tailwind classes in safelist that aren't used

## Output: DEADCODE-REPORT.md

### Summary
- Unused exports: X
- Orphaned files: X
- Unreachable code blocks: X
- Commented code blocks: X
- Estimated dead code: X lines

### Unused Exports
| File | Export | Type |
|------|--------|------|
| src/utils/format.ts | formatCurrency | function |

### Orphaned Files (safe to delete)
- src/components/OldHeader.tsx
- src/utils/deprecated.ts

### Recommended Cleanup
Prioritized list of what to remove, starting with highest confidence.

DO NOT automatically delete anything. This is a report for human review.`
};
//# sourceMappingURL=deadcode.js.map