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 4.5.6.1 Halstead Metrics.
Possible Messages
This rule has no predefined messages.
Options¶
This rule shares the following common options: confidence, exclude_messages_in_system_headers, excludes, includes, justification_checker, post_processing, provider, severity
This rule shares the following common metric options: base_view_name, excluded_node_types, hierarchy_edge_name, hierarchy_view_name, propagate, report_all_values, report_propagated_values
The following places define options that affect this rule: HalsteadMetrics, Analysis-GlobalOptions
display_name¶
display_name : str | None = 'Total Halstead Operators'
max_value¶
max_value : int | None = None
min_value¶
min_value : int | None = None
rfg_metric_name¶
rfg_metric_name : str = 'Metric.Halstead.Total_Operators'