get_risk_hotspots
Identify high-risk code files by detecting areas with both high complexity and frequent changes using Adam Tornhill's methodology to prioritize refactoring efforts.
Instructions
Code hotspots: files with both high complexity AND high git churn (Adam Tornhill methodology). Score = complexity × log(1 + commits). Each entry includes a confidence_level (low/medium/multi_signal) counting how many of the two independent signals fired strongly. Result envelope includes _methodology disclosure and _warnings when git is unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since_days | No | Git churn window in days (default: 90) | |
| limit | No | Max results (default: 20) | |
| min_cyclomatic | No | Min cyclomatic complexity to consider (default: 3) |