Skip to main content

WhyRunSupportedTrue

The department is: WhyRunSupportedTrue

The full name of the cop is: Chef/Modernize/WhyRunSupportedTrue

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