Skip to main content

ResourceWithNothingAction

All Cookstyle Cops


The department is: Chef/RedundantCode

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

Was this page helpful?