Skip to content

feat: core CLI MVP with analysis, output formats, and tests#5

Merged
montfort merged 4 commits intomainfrom
001-core-cli-mvp
Apr 4, 2026
Merged

feat: core CLI MVP with analysis, output formats, and tests#5
montfort merged 4 commits intomainfrom
001-core-cli-mvp

Conversation

@montfort
Copy link
Copy Markdown
Contributor

@montfort montfort commented Apr 4, 2026

Summary

  • Implement full arborist-cli MVP: clap-based CLI wrapping arborist-metrics for cognitive/cyclomatic complexity analysis
  • Support single file, multi-file, directory (with --gitignore), and stdin input modes
  • Three output formats: table (default), JSON, CSV
  • Filtering: --threshold, --exceeds-only, --sort, --top, --no-methods, --languages
  • Exit codes: 0 (success), 1 (threshold exceeded), 2 (error)
  • 22 integration tests covering all CLI features (spec tasks T011–T067)
  • DevTrail documentation: 2 AILOGs + 1 TES record

Test plan

  • cargo test — 22 integration tests pass
  • cargo build — compiles cleanly
  • Manual smoke test: cargo run -- src/ with various flags
  • Review DevTrail documents for accuracy

🤖 Generated with Claude Code

montfort and others added 4 commits April 2, 2026 23:01
Add SpecKit scaffolding for structured specification workflow:
- 9 Claude Code skills (analyze, checklist, clarify, constitution,
  implement, plan, specify, tasks, taskstoissues)
- Project templates (constitution, plan, spec, tasks, checklist, agent)
- Integration manifests and setup scripts
- Bash automation scripts for feature creation and context updates

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Full implementation of arborist-cli wrapping arborist-metrics:
- Single file, stdin, and directory analysis
- Three output formats: table, JSON, CSV
- Threshold filtering with --exceeds-only and exit codes (0/1/2)
- Sort by metric and top-N across files (flat mode)
- Directory traversal with --gitignore and --languages filter
- Multiple positional args (files + directories mixed)
- TTY-aware output (no decorations when piped)

Includes SpecKit specification artifacts (spec, plan, research,
data model, CLI contract, tasks, quickstart) and project constitution.

Clippy -D warnings clean, rustfmt formatted.
Integration tests pending for next session.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add 29 integration tests covering all 6 user stories (single file,
JSON/stdin, directory traversal, threshold filtering, sort/top, CSV).
Validate Phase 9 polish tasks and mark all 67 SpecKit tasks as done.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add AILOG for core CLI MVP, AILOG for integration test suite, and TES
record documenting test coverage across all 22 integration tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 4, 2026

CLA assistant check
All committers have signed the CLA.

@montfort montfort merged commit 4c11545 into main Apr 4, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants