Class: RuboCop::Cop::Homebrew::SingleUseMethod::BlockNestingScore Private

Inherits:
Metrics::BlockNesting
  • Object
show all
Defined in:
rubocops/single_use_method.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Instance Method Details

#cop_config ⇒ Hash{String => T.anything}

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Read e.g. CountModifierForms from Metrics/BlockNesting rather than this class's own badge.

Returns:



67
# File 'rubocops/single_use_method.rb', line 67

def cop_config = config.for_cop("Metrics/BlockNesting")