Expand description
Complexity attribution analysis for source-level insights.
Maps complexity metrics back to specific code constructs, identifying whether complexity comes from logical structure, formatting artifacts, or recognized patterns. Complexity attribution analysis.
This module provides tools for attributing complexity metrics to specific source code constructs, distinguishing between logical complexity, formatting artifacts, and recognized patterns.
Modules§
- change_
tracker - Tracks changes in complexity between analysis runs.
- pattern_
tracker - Pattern detection and complexity adjustment.
- source_
tracker - Complexity source tracking and classification.
Structs§
- Attributed
Complexity - Attributed complexity with breakdown.
- Attribution
Engine - Core attribution engine for complexity source analysis
- Code
Location - Source code location information.
- Complexity
Attribution - Complete complexity attribution analysis.
- Complexity
Component - Individual complexity component with source attribution.
- Source
Mapping - Mapping from a complexity point back to source code.
Enums§
- Artifact
Severity - Severity level of formatting artifacts.
- Formatting
Artifact - Types of formatting artifacts that inflate raw complexity metrics.
- Language
Feature - Language-specific features that affect complexity analysis.
- Logical
Construct - Types of logical constructs that contribute to complexity.
- Recognized
Pattern - Recognized code patterns that have adjusted complexity scoring.