class RuboCop::Cop::Chef::Modernize::IncludingWindowsDefaultRecipe
Don’t include the windows default recipe that is either full of gem install that are part of the Chef
Infra Client, or empty (depends on version).
@example
#### incorrect include_recipe 'windows::default' include_recipe 'windows'
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/chef/modernize/windows_default_recipe.rb, line 41 def on_send(node) windows_recipe_usage?(node) do add_offense(node, severity: :refactor) do |corrector| corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left)) end end end