·
75 commits
to master
since this release
What's New in v0.1.1
Bug Fix
- Fixed unreferenced component detection: The
all_imported_namescollection loop was a no-op, causing components that ARE imported to be falsely reported as unreferenced. Now correctly usesimports.keys()to get all imported names.
Features
.deadcode.ymlconfig file support: Create a config file in your project root to set ignore patterns, enabled categories, and fail threshold — no more repeating CLI flags.--fail Noption for CI gating:deadcode scan --fail 10exits with code 1 if findings >= 10. Perfect for CI pipelines. Can also be set viafail_thresholdin.deadcode.yml.- Config + CLI merge: CLI
--ignoreflags are merged with config file ignore patterns, not replaced.
Docs
- Removed false claim about TypeScript compiler API (DeadCode uses regex-based pattern scanning)
- Documented
.deadcode.ymlconfiguration format - Documented
--failoption for CI integration
Tests
- 39/39 passing (23 original + 16 new tests for config, fail threshold, and bug fix)