class RuboCop::Cop::Chef::RedundantCode::SuggestsMetadata

The suggests metadata.rb method is not used and is unnecessary in cookbooks.

@example

#### incorrect in metadata.rb:

suggests "another_cookbook"

Constants

MSG
RESTRICT_ON_SEND

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/cop/chef/redundant/suggests_metadata.rb, line 37
def on_send(node)
  add_offense(node, severity: :refactor) do |corrector|
    corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left))
  end
end