class RuboCop::Cop::Chef::RedundantCode::GroupingMetadata
The grouping metadata.rb method is not used and is unnecessary in cookbooks.
@example
### incorrect grouping 'windows_log_rotate', title: 'Demonstration cookbook with code to switch loggers'
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
Source
# File lib/rubocop/cop/chef/redundant/grouping_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