Class: RuboCop::Cop::Chef::RedundantCode::ConflictsMetadata
- Extended by:
- AutoCorrector
- Includes:
- RangeHelp
- Defined in:
- lib/rubocop/cop/chef/redundant/conflicts_metadata.rb
Overview
The conflicts metadata.rb method is not used and is unnecessary in cookbooks.
Constant Summary collapse
- MSG =
'The conflicts metadata.rb method is not used and is unnecessary in cookbooks.'
- RESTRICT_ON_SEND =
[:conflicts].freeze
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#on_send(node) ⇒ Object
37 38 39 40 41 |
# File 'lib/rubocop/cop/chef/redundant/conflicts_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: :right)) end end |