Skip to main content

ResourceWithNothingAction

The department is: ResourceWithNothingAction

The full name of the cop is: Chef/RedundantCode/ResourceWithNothingAction

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Chef Infra Client provides the :nothing action by default for every resource. There is no need to define a :nothing action in your resource code.

Examples

incorrect

action :nothing
  # let's do nothing
end

Configurable attributes

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

Thank you for your feedback!

×









Search Results