Skip to main content

Chef/Modernize/WhyRunSupportedTrue

Cookstyle cops page

The Cookstyle cops department: Chef/Modernize

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes13.0+

whyrun_supported? no longer needs to be set to true as that is the default in Chef Infra Client 13+

Examples

incorrect

def whyrun_supported?
 true
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.1.0String
Include
  • **/resources/*.rb
  • **/providers/*.rb
  • **/libraries/*.rb
Array

Thank you for your feedback!

×










Search Results