Skip to main content

ResourceSetsInternalProperties

All Cookstyle Cops


The department is: Chef/Correctness

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


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

Chef Infra Client uses properties in several resources to track state. These should not be set in recipes as they break the internal workings of the Chef Infra Client

Examples

incorrect

service 'foo' do
  running true
  action [:start, :enable]
end

correct

service 'foo' do
  action [:start, :enable]
end

Configurable attributes

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

Was this page helpful?