Metric-Lines.Comment

Lines containing Comments

Required inputs: RFG

Counts the lines within the scope that contain a comment. This metric is also available as Metric-Lines.File.Comment, Metric-Lines.Class.Comment or Metric-Lines.Routine.Comment limited to the specific scopes.

Possible Messages

This rule has no predefined messages.

Options

display_name

display_name : str | None = 'Lines containing Comments'

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.Lines.Comment'

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