Chef/Modernize/EmptyResourceInitializeMethod
The Cookstyle cops department: Chef/Modernize
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 |
| Array |