Skip to main content

Module attribution

Module attribution 

Source
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§

AttributedComplexity
Attributed complexity with breakdown.
AttributionEngine
Core attribution engine for complexity source analysis
CodeLocation
Source code location information.
ComplexityAttribution
Complete complexity attribution analysis.
ComplexityComponent
Individual complexity component with source attribution.
SourceMapping
Mapping from a complexity point back to source code.

Enums§

ArtifactSeverity
Severity level of formatting artifacts.
FormattingArtifact
Types of formatting artifacts that inflate raw complexity metrics.
LanguageFeature
Language-specific features that affect complexity analysis.
LogicalConstruct
Types of logical constructs that contribute to complexity.
RecognizedPattern
Recognized code patterns that have adjusted complexity scoring.