Metric-OO.RFC

Response for a class

Required inputs: RFG

The response of a class is the count of methods of the class itself and all methods/functions called by the methods of the class (i.e., we take one level of the call tree into account). Inherited but not overridden methods are not taken into account; the potential fan out generated by calls to virtual functions is also not taken into account.

Possible Messages

This rule has no predefined messages.

Options

display_name

display_name : str | None = 'Response for a class'

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

ignore_artificial_methods

ignore_artificial_methods : bool = True

Do not count artificial methods and artificial method calls.
 

ignore_deleted_methods

ignore_deleted_methods : bool = True

Do not count deleted methods.
 

max_value

max_value : int | None = 50

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

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