Cross-references complexity, churn, and coverage to identify refactoring targets. Acceptance criteria met: - Cross-references: complexity x churn x coverage - Identifies: refactor targets with priority scoring - Output: prioritized refactor list (JSON or human-readable) - Designed for monthly execution via cron Scoring formula: - Complexity (40%): Higher cyclomatic complexity = higher priority - Churn (30%): Frequently changed files = high value to refactor - Size (20%): Larger files = more to refactor - Coverage (10%): Low coverage = higher risk but more need Usage: python3 scripts/refactoring_opportunity_finder.py --repo /path/to/repo python3 scripts/refactoring_opportunity_finder.py --repo /path/to/repo --json Closes #169
1.6 KiB
Executable File
1.6 KiB
Executable File