Skip to main content

InvalidDefaultAction

The department is: InvalidDefaultAction

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

Enabled by default Supports autocorrection Target Chef Version
Enabled No All Versions

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

Examples

incorrect

default_action 'create'

correct

default_action :create

Configurable attributes

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

Was this page helpful?

×









Search Results