Code Complexity
Analyzes code complexity and provides metrics
LLA Code Complexity Plugin
A code analysis plugin for lla
that performs real-time complexity analysis of source code.
Features
- Multi-Metric Analysis
- Cyclomatic & Cognitive Complexity
- Maintainability Index (0-100)
- Function/Class Analysis
- Control Flow & Volume Metrics
- Smart Thresholds: Configurable with color-coding
- Real-Time Statistics: Continuous metric tracking
- Detailed Reports: File and language-level insights
Default Configuration
Complexity Thresholds
- Low: < 10.0
- Medium: < 20.0
- High: < 30.0
- Very High: ≥ 40.0
Language Support (Default: Rust)
- Function:
fn
- Class:
struct
,impl
,trait
- Branch:
if
,match
,else
- Loop:
for
,while
,loop
- Comments:
//
,/*
- Max Line Length: 100
- Max Function Length: 50 lines
Usage
Display Formats
Default
Long
Configuration
Config file: ~/.config/lla/code_complexity/config.toml