lib/rubocop/cop/chef/deprecation/chef_handler_recipe.rb in cookstyle-7.30.1 vs lib/rubocop/cop/chef/deprecation/chef_handler_recipe.rb in cookstyle-7.30.3
- old
+ new
@@ -38,10 +38,10 @@
(send nil? :include_recipe (str {"chef_handler" "chef_handler::default"}))
PATTERN
def on_send(node)
chef_handler_recipe?(node) do
- add_offense(node, message: MSG, severity: :refactor) do |corrector|
+ add_offense(node, severity: :refactor) do |corrector|
corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left))
end
end
end
end