debtmap 0.23.0

Code complexity and technical debt analyzer
Documentation
# Example Debtmap Configuration: Orchestration Detection Tuning
#
# This example shows how to configure orchestration detection to reduce
# false positives for your specific codebase patterns.

[complexity_weights]
# Weights for combining cyclomatic and cognitive complexity
# Must sum to 1.0. Default favors cognitive complexity (0.7) over cyclomatic (0.3)
cyclomatic = 0.3
cognitive = 0.7

# Maximum values for normalization (0-100 scale)
max_cyclomatic = 50.0
max_cognitive = 100.0

[orchestrator_detection]
# Maximum cyclomatic complexity for coordinator functions.
max_cyclomatic = 5

# Minimum fraction of statements that delegate to other functions.
min_delegation_ratio = 0.2

# Minimum number of non-standard-library callees.
min_meaningful_callees = 3

# Relative importance of cognitive complexity in orchestration scoring.
cognitive_weight = 0.7