Skip to main content

Chef/RedundantCode/ResourceWithNothingAction

Cookstyle cops page

The Cookstyle cops department: Chef/RedundantCode

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