Skip to main content

Chef/Deprecations/CookbooksDependsOnSelf

Cookstyle cops page

The Cookstyle cops department: Chef/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Make sure a cookbook doesn’t depend on itself. This will fail on Chef Infra Client 13+

Examples

# bad
name 'foo'
depends 'foo'

# good
name 'foo'

Configurable attributes

NameDefault valueConfigurable values
Version Added5.2.0String
Include
  • **/metadata.rb
Array

Thank you for your feedback!

×