class RuboCop::Cop::Chef::RedundantCode::LongDescriptionMetadata
The long_description metadata.rb method is not used and is unnecessary in cookbooks.
@example
#### incorrect long_description 'this is my cookbook and this description will never be seen'
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/chef/redundant/long_description_metadata.rb, line 37 def on_send(node) add_offense(node, severity: :refactor) do |corrector| corrector.remove(range_with_surrounding_space(range: expression_including_heredocs(node), side: :left)) end end