Skip to main content

ResourceWithNothingAction

The department is: ResourceWithNothingAction

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

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

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

Was this page helpful?

×









Search Results