Metric-OO.CBOs

Coupling between objects (excluding statics)

Required inputs: RFG

Number of classes that are coupled to a class C, i.e., the size of the union set of classes that are using fields and methods of C and the classes that are used by C's fields and methods (so both directions count here).

Static data members are not taken into account when looking at the dependencies to and from other classes.

Possible Messages

This rule has no predefined messages.

Options

display_name

display_name : str | None = 'Coupling between objects (excluding statics)'

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.CBOs'

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