DebtCostConfig class
Configuration for technical debt cost calculation.
Constructors
-
DebtCostConfig({required Map<
DebtType, double> costs, required Map<DebtSeverity, double> multipliers, required String unit, required double threshold, required DebtMetricsThresholds metricsThresholds, required List<String> exclude}) -
const
- DebtCostConfig.defaults()
-
Default configuration based on DCM reference values.
factory
-
DebtCostConfig.fromYaml(Map<
String, dynamic> yaml) -
Create configuration from YAML map.
factory
Properties
-
costs
→ Map<
DebtType, double> -
Base cost for each debt type (in hours by default).
final
-
exclude
→ List<
String> -
File patterns to exclude from debt analysis.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metricsThresholds → DebtMetricsThresholds
-
Metrics thresholds.
final
-
multipliers
→ Map<
DebtSeverity, double> -
Multipliers for each severity level.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- threshold → double
-
Alert threshold - report exceeds if total cost > threshold.
final
- unit → String
-
Unit of measurement ('hours', 'days', 'story_points').
final
Methods
-
getCost(
DebtType type) → double - Get cost for a debt type.
-
getMultiplier(
DebtSeverity severity) → double - Get multiplier for a severity level.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert to JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited