Metric-OO.DIT

Depth of Inheritance Tree

Required inputs: RFG

DIT of a class is the length of the longest path from class to the root in the inheritance hierarchy. Classes that do not inherit anything have a DIT of 0.

Possible Messages

This rule has no predefined messages.

Options

display_name

display_name : str | None = 'Depth of Inheritance Tree'

Description of the metric shown in the dashboard. If None, rfg_metric_name is used.
 

max_value

max_value : int | None = 5

Maximum allowed value. None if unlimited.
 

min_value

min_value : int | None = 0

Minimum allowed value. None if unlimited.
 

rfg_metric_name

rfg_metric_name : str = 'Metric.OO.DIT'

Name of the node attribute storing the metric value in the RFG.