class RuboCop::Cop::Chef::RedundantCode::ReplacesMetadata
The replaces metadata.rb method is not used and is unnecessary in cookbooks. Replacements for existing cookbooks should be documented in the cookbook’s README.md file instead.
@example
### incorrect in metadata.rb: replaces "another_cookbook"
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
Source
# File lib/rubocop/cop/chef/redundant/replaces_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