Skip to main content

EmptyResourceInitializeMethod

All Cookstyle Cops


The department is: Chef/Modernize

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

Was this page helpful?









Search Results