Analyzer
provide.testkit.quality.complexity.analyzer
¶
Complexity analysis implementation using radon.
Classes¶
ComplexityAnalyzer
¶
Code complexity analyzer using radon and other tools.
Provides high-level interface for complexity analysis with automatic artifact management and integration with the quality framework.
Initialize complexity analyzer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict[str, Any] | None
|
Complexity analyzer configuration options |
None
|
Source code in provide/testkit/quality/complexity/analyzer.py
Functions¶
analyze
¶
Run complexity analysis on the given path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path
|
Path to analyze |
required |
**kwargs
|
Any
|
Additional options including artifact_dir |
{}
|
Returns:
| Type | Description |
|---|---|
QualityResult
|
QualityResult with complexity analysis data |
Source code in provide/testkit/quality/complexity/analyzer.py
report
¶
Generate report from QualityResult (implements QualityTool protocol).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
QualityResult
|
Complexity result |
required |
format
|
str
|
Report format |
'terminal'
|
Returns:
| Type | Description |
|---|---|
str
|
Formatted report |