Skip to main content

EmptyResourceInitializeMethod

The department is: EmptyResourceInitializeMethod

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

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

There is no need for an empty initialize method in a resource

Examples

incorrect

def initialize(*args)
  super
end

Configurable attributes

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

Thank you for your feedback!

×









Search Results