Metric-Coupling

Coupling between classes, routines, etc.

Required inputs: RFG

Measures the number of incoming edges of type "Source_Dependency" between nodes that belong to different roots. In this case, a root is a node without any outgoing edges of type coupling_hierarchy_edge_name.

Possible Messages

This rule has no predefined messages.

Options

coupling_hierarchy_edge_name

coupling_hierarchy_edge_name : str = 'Belongs_To'

Hierarchy edge type name in the RFG. Used during metric calculation.
 

display_name

display_name : str | None = 'Coupling between classes, routines, etc.'

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

max_value

max_value : float | None = None

Maximum allowed value. None if unlimited.
 

min_value

min_value : float | None = None

Minimum allowed value. None if unlimited.
 

rfg_metric_name

rfg_metric_name : str = 'Metric.Coupling'

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