Metric-HIS.PARAM

HIS PARAM metric: Number of function parameters

Required inputs: RFG

This metric counts the number of parameters of a function/method as to give an indication for the size of the interface.

Possible Messages

This rule has no predefined messages.

Options

alias_name

alias_name : str = 'Metric.HIS.PARAM'

Name under which the metric will be reported. In the RFG, a metric with this value is created, too (copied from original metric).
 

display_name

display_name : str | None = 'HIS PARAM'

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 : OriginalMetrics = 'Metric.Number_Of_Parameters'

Name of the node attribute storing the metric value in the RFG. The name of the RFG node attribute of the original metric.
 

Option Types

These types are used by options listed above:

OriginalMetrics

An enumeration.
 
  • Metric.Number_Of_Parameters