Expand description
Core data types and domain models for debtmap analysis.
This module contains the fundamental types used throughout debtmap, including analysis results, complexity reports, function metrics, and technical debt items. Types here are designed to be serializable for persistence and interoperability.
§Key Components
- Analysis results: Top-level structures aggregating all analysis data
- Complexity metrics: Cyclomatic, cognitive, and weighted complexity measures
- Debt items: Individual technical debt findings with severity and location
- AST utilities: Abstract syntax tree helpers for code parsing
- Monadic patterns: Functional error handling and composition utilities
Re-exports§
pub use crate::priority::DebtType;
Modules§
- ast
- AST representation and pattern extraction data structures.
- errors
- Shared error types for the application (DEPRECATED).
- injection
- Dependency injection container and builder patterns
- lazy
- metrics
- monadic
- parsing
- Safe Rust parsing utilities that prevent proc-macro2 SourceMap overflow.
- refined
- Refined types for domain invariants
- traits
- Core trait definitions for clean module boundaries
- types
- Common type definitions used across the codebase
Structs§
- Analysis
Results - Circular
Dependency - Complexity
Metrics - Complexity
Report - Complexity
Summary - Debt
Item - Dependency
- Dependency
Report - Duplication
Block - Duplication
Location - Entropy
Details - Entropy details for explainable output
- File
Metrics - Function
Metrics - Module
Dependency - Technical
Debt Report
Enums§
- Dependency
Kind - Language
- Language
Specific Data - Language-specific data to avoid memory overhead for non-applicable files
- Priority
- Purity
Level - Refined purity classification that distinguishes local from external mutations.