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 default Supports autocorrection Target Chef Version
Enabled Yes All Versions

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

Examples

incorrect

def initialize(*args)
  super
end

Configurable attributes

Name Default value Configurable values
Version Added 5.13.0 String
Include
  • **/resources/*.rb
  • **/providers/*.rb
Array

Was this page helpful?

×









Search Results