get_complexity_trend
Analyze file complexity trends over git history by measuring cyclomatic complexity at past commits. Shows whether a file is improving or degrading over time.
Instructions
File complexity over git history: cyclomatic complexity at past commits. Shows if a file is getting more or less complex. Requires git. Use to track whether a file is improving or degrading. For current snapshot use get_complexity_report; for symbol-level trends use get_symbol_complexity_trend. Read-only. Returns JSON: { file, snapshots: [{ commit, date, complexity }] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | File path to analyze | |
| snapshots | No | Number of historical snapshots (default: 5) |