Skip to content

Feat/fase2 git history#6

Merged
aitormf merged 5 commits into
mainfrom
feat/fase2-git-history
Apr 28, 2026
Merged

Feat/fase2 git history#6
aitormf merged 5 commits into
mainfrom
feat/fase2-git-history

Conversation

@aitormf
Copy link
Copy Markdown
Owner

@aitormf aitormf commented Apr 28, 2026

No description provided.

aitormf added 5 commits April 27, 2026 21:21
…ral coupling and bus factor

Implements Fase 2 behavioral analysis:
- parse_churn: git log --numstat -> commits/lines per file
- compute_hotspots: churn x (fan_in + fan_out) ranking
- compute_temporal_coupling: files co-changed above ratio threshold
- compute_bus_factor: min authors covering 80% of lines per file

28 unit tests with subprocess mocks; 99% coverage on the new module.
- cmd_coupling replaces cmd_metrics (alias kept for backward compat)
- _auto_index runs the indexer silently before all analysis commands;
  failures are logged as warnings but never abort the command
- structlog logger added to cli module
- Deprecated 'metrics' subparser kept with deprecation note in help
Add git_history module to architecture diagram, document coupling/git-coupling/
report/hotspots/temporal-coupling/bus-factor commands, auto-index behavior,
and behavioral metrics section (hotspot score, temporal coupling, bus factor).
Update roadmap with all Fase 2 items completed.
@aitormf aitormf merged commit 2e08246 into main Apr 28, 2026
4 checks passed
@aitormf aitormf deleted the feat/fase2-git-history branch April 28, 2026 14:58
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.

1 participant