class RuboCop::Cop::Chef::Modernize::UnnecessaryMixlibShelloutRequire
Chef
Infra Client 12.4+ includes mixlib/shellout automatically in resources and providers.
@example
### incorrect require 'mixlib/shellout'
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
Source
# File lib/rubocop/cop/chef/modernize/unnecessary_mixlib_shellout_require.rb, line 40 def on_send(node) require_mixlibshellout?(node) do add_offense(node, severity: :refactor) do |corrector| corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left)) end end end