Skip to content

v0.1.1 — Bug Fix + Config File + CI Gating

Latest

Choose a tag to compare

@Coding-Dev-Tools Coding-Dev-Tools released this 15 May 05:27
· 2 commits to master since this release

What's New in v0.1.1

Bug Fix

  • Fixed unreferenced component detection: The all_imported_names collection loop was a no-op, causing components that ARE imported to be falsely reported as unreferenced. Now correctly uses imports.keys() to get all imported names.

Features

  • .deadcode.yml config 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 N option for CI gating: deadcode scan --fail 10 exits with code 1 if findings >= 10. Perfect for CI pipelines. Can also be set via fail_threshold in .deadcode.yml.
  • Config + CLI merge: CLI --ignore flags 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.yml configuration format
  • Documented --fail option for CI integration

Tests

  • 39/39 passing (23 original + 16 new tests for config, fail threshold, and bug fix)