Repository navigation
feat: cora debt subcommand (Phase 2 of #206) - #253
Merged
Merged
Conversation
- New src/commands/debt.rs with `cora debt` CLI subcommand - `--json` flag for machine-readable output - `--trend` flag for ASCII quality score graph - `--since <date|tag>` filter by date or git tag - `--branch <name>` filter by branch - Terminal-formatted debt report table with severity breakdown - Category breakdown with trend indicators (improving/stable/worsening) - Quality score with color-coded display - Auto-cleanup of old snapshots on each run - All 485 tests pass, clippy clean, fmt clean
- Use NaiveDate::parse_from_str for YYYY-MM-DD (was RFC3339 which rejects plain dates) - Fix trend graph: top row check uses height-1 instead of row==0 - All 485 tests pass, clippy clean
- Top row (row == height-1) range includes max_score boundary - Cleaner in_range condition with inline comment
ajianaz
added a commit
that referenced
this pull request
Jun 11, 2026
PR #252 and #253 merged tech debt metrics but docs were not updated. Changes: - CHANGELOG.md + docs/changelog.md: added debt tracker to [0.5.0] Added - docs/roadmap.md: #206 Planned → Done - README.md: added 'cora debt' to commands table - docs/cli-reference.md: added cora debt subcommand with all flags - docs/configuration.md: added Tech Debt Tracker section (config + CLI) - AGENT.md: test count 453→485, added debt_tracker.rs + debt.rs to structure - .agent.md: test count 453→485
17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2:
cora debtCLI Subcommand (Issue #206)What's New
cora debt— show tech debt report from review history.Features
--json— fullDebtReportJSON for CI integration--trend— ASCII quality score graph over review history--since— filter by date (YYYY-MM-DD) or git tag--branch— filter by branch nameFiles Changed
src/commands/debt.rssrc/commands/mod.rssrc/main.rsDebtsubcommand to CLIVerification
cargo test— 485/485 passcargo clippy --all-targets -- -D warnings— cleancargo fmt --all -- --check— clean