get_complexity_trend
Track cyclomatic complexity changes of a file through git history, revealing whether it is improving or degrading in complexity.
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) |