Skip to main content

InvalidDefaultAction

The department is: InvalidDefaultAction

The full name of the cop is: Chef/Correctness/InvalidDefaultAction

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