Skip to content

v0.9.0 — Historical drift analysis + HTML report + Badge + CI annotations

Choose a tag to compare

@eduardbar eduardbar released this 24 Feb 23:59
· 161 commits to master since this release

What's new

Phase 4 — Historical drift analysis

  • trend [period] command: analyzes debt evolution over week, month, quarter, year
  • blame [target] command: shows which files/rules contribute most to drift
  • TrendAnalyzer class with linear regression, moving average, ASCII chart
  • BlameAnalyzer class with per-file and per-rule attribution via git blame

Phase 6 — HTML report, badge, CI annotations

  • report [path] command: generates self-contained HTML report (dark mode, no external deps)
  • badge [path] command: generates badge.svg in shields.io format
  • ci [path] command: emits GitHub Actions workflow annotations + step summary

Fixes

  • VERSION is now read dynamically from package.json — never out of sync again
  • Added missing program.parse() — commands were silently not executing

Install

npx @eduardbar/drift@0.9.0 scan .

Usage

npx @eduardbar/drift scan .           # scan for drift
npx @eduardbar/drift report .         # generate HTML report
npx @eduardbar/drift badge .          # generate badge.svg
npx @eduardbar/drift ci . --min-score 60  # CI gate
npx @eduardbar/drift trend month      # trend last 30 days
npx @eduardbar/drift blame overall    # who introduced most debt