You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Harden remove against multi-line corruption; fix docs + CI
- remove: only blank self-contained single-line findings; skip multi-line
constructs with a warning so it never leaves syntactically broken code
- README: 'AST analysis' -> regex-based; clarify safe-removal behavior
- package.json: correct description (TS/React/Next.js, not Python)
- CI: drop pytest -x so all failures surface; add coverage
-**Orphaned CSS detection** — finds CSS module classes that are defined but never referenced in TSX/JSX files
79
-
-**Safe auto-removal** — `--dry-run` preview mode shows exactly what will be deleted before making changes
80
-
-**Full-project AST analysis** — regex-based scanning covers export/import patterns, route detection, CSS class usage, and component references across your entire codebase
79
+
-**Safe auto-removal** — `--dry-run` preview shows exactly what will be deleted first; `remove` only blanks self-contained single-line findings and skips (with a warning) anything spanning multiple lines, so it never leaves half-deleted, broken code
80
+
-**Full-project scanning** — fast regex-based scanning covers export/import patterns, route detection, CSS class usage, and component references across your entire codebase (no AST/tree-sitter — deliberately dependency-free and quick)
81
81
-**Monorepo support** — handles large projects efficiently with ignore patterns
82
82
-**CI integration** — JSON output for automated pipelines and gating
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "deadcode-cli",
3
3
"version": "0.1.1",
4
-
"description": "Find unused/dead code in Python projects. Static analysis tool to identify orphaned functions, classes, and imports.",
4
+
"description": "Find unused/dead code in TypeScript, React, and Next.js projects. Scans for orphaned exports, dead routes, unreferenced components, and unused CSS module classes.",
0 commit comments