class RuboCop::Cop::Chef::Deprecations::IncludingXMLRubyRecipe
Do not include the deprecated xml::ruby recipe to install the nokogiri gem. Chef
Infra Client 12 and later ships with nokogiri included.
@example
### incorrect include_recipe 'xml::ruby'
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
Source
# File lib/rubocop/cop/chef/deprecation/xml_ruby_recipe.rb, line 39 def on_send(node) xml_ruby_recipe?(node) do node = node.parent if node.parent&.conditional? && node.parent&.single_line_condition? # make sure we catch any inline conditionals add_offense(node, severity: :warning) do |corrector| corrector.remove(node) end end end