Skip to main content

ResourceWithNoneAction

All Cookstyle Cops


The department is: Chef/Correctness

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


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

The :nothing action is often typo’d as :none

Examples

incorrect

service 'foo' do
 action :none
end

correct

service 'foo' do
 action :nothing
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.5.0String
Exclude
  • **/attributes/*.rb
  • **/metadata.rb
  • **/Berksfile
Array

Was this page helpful?