class RuboCop::Cop::Chef::Modernize::WhyRunSupportedTrue
whyrun_supported? no longer needs to be set to true as that is the default in Chef
Infra Client 13+
@example
#### incorrect def whyrun_supported? true end
Constants
- MSG
Public Instance Methods
on_def(node)
click to toggle source
# File lib/rubocop/cop/chef/modernize/whyrun_supported_true.rb, line 47 def on_def(node) whyrun_true?(node) do add_offense(node, severity: :refactor) do |corrector| corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left)) end end end