Skip to main content

Module core

Module core 

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

AnalysisResults
CircularDependency
ComplexityMetrics
ComplexityReport
ComplexitySummary
DebtItem
Dependency
DependencyReport
DuplicationBlock
DuplicationLocation
EntropyDetails
Entropy details for explainable output
FileMetrics
FunctionMetrics
ModuleDependency
TechnicalDebtReport

Enums§

DependencyKind
Language
LanguageSpecificData
Language-specific data to avoid memory overhead for non-applicable files
Priority
PurityLevel
Refined purity classification that distinguishes local from external mutations.