You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Score code health across five dimensions (complexity, function size, comment ratio, file size, nesting depth) with grades from A to F.
70
+
71
+
```bash
72
+
codelens health .# Project, directory, and file-level report
73
+
codelens health . --top 20 # Show top 20 worst files
74
+
codelens health . -f json # Output as JSON
75
+
```
76
+
77
+
### Hotspot Detection
78
+
79
+
Find the riskiest files by combining git change frequency (churn) with code complexity — files that change often AND are complex are the most likely sources of bugs.
80
+
81
+
```bash
82
+
codelens hotspot .# Last 90 days (default)
83
+
codelens hotspot . --since 30d # Last 30 days
84
+
codelens hotspot . --since 6m --top 5 # Last 6 months, top 5
85
+
```
86
+
87
+
### Trend Tracking
88
+
89
+
Save snapshots and compare codebase evolution over time. Snapshots are stored in `.codelens/snapshots/`. Use `latest`, `latest~N`, or a date prefix like `2025-01-01` as references.
90
+
91
+
```bash
92
+
codelens trend --save --label v1.0 # Save a labeled snapshot
93
+
codelens trend # Compare latest two snapshots
94
+
codelens trend --list # List all snapshots
95
+
codelens trend --compare latest~2 latest # Compare specific snapshots
0 commit comments