class RuboCop::Cop::Chef::RedundantCode::RecipeMetadata

The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead.

@example

#### incorrect
recipe 'openldap::default', 'Install and configure OpenLDAP'

Constants

MSG
RESTRICT_ON_SEND

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/cop/chef/redundant/recipe_metadata.rb, line 38
def on_send(node)
  add_offense(node, message: MSG, severity: :refactor) do |corrector|
    corrector.remove(range_with_surrounding_space(range: expression_including_heredocs(node), side: :left))
  end
end