Feat/fase2 git history#7
Merged
Merged
Conversation
compute_hotspots was iterating churn_map (all git-historical files) and looking up coupling, always returning 0 for renamed/deleted files. Now iterates coupling_map (currently indexed files) and looks up churn; renamed historical paths are naturally skipped. Also improves cmd_report human output: structural section shows only flagged modules (⚠ inestable, ● god, cycles); hotspots filtered to score>0; temporal coupling includes ratio; bus factor shows only bf=1.
The JSON output of `debtector report` now mirrors the human output: - modules: only god modules and instability-flagged ones (adds instability_flag bool) - hotspots: only score > 0 - temporal_coupling: unchanged (already filtered by min_shared/min_ratio) - bus_factor: only bus_factor == 1 Reduces token consumption for AI consumers when the codebase is healthy. Adds three regression tests to lock the filtering behaviour.
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.
No description provided.