Metric-Halstead.TotalOperators

Total Halstead Operators

Required inputs: RFG

This metric calculates the base value total number of operators of the Halstead metrics. The base values are:

  • n1 = the number of different operators
  • n2 = the number of different operands
  • N1 = the total number of operators
  • N2 = the total number of operands

For more information on what is considered an operator please refer to the documentation (Project Configuration / Language Schema / Language Representation for C / Metrics / Halstead metrics).

Possible Messages

This rule has no predefined messages.

Options

display_name

display_name : str | None = 'Total Halstead Operators'

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

max_value

max_value : int | None = None

Maximum allowed value. None if unlimited.
 

min_value

min_value : int | None = None

Minimum allowed value. None if unlimited.
 

rfg_metric_name

rfg_metric_name : str = 'Metric.Halstead.Total_Operators'

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