Skip to main content

Chef/Correctness/InvalidDefaultAction

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

Default actions in resources should be symbols or an array of symbols.

Examples

incorrect

default_action 'create'

correct

default_action :create

Configurable attributes

NameDefault valueConfigurable values
Version Added6.13.0String
Include
  • **/libraries/*.rb
  • **/resources/*.rb
Array

Thank you for your feedback!

×









Search Results