Skip to main content

Chef/Correctness/MetadataMalformedDepends

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

metadata.rb cookbook dependencies and version constraints should be comma separated.

Examples

incorrect

depends 'some_awesome_cookbook' '= 4.5.5'
depends 'some_other_cool_cookbook' '< 8.0'

correct

depends 'some_awesome_cookbook', '= 4.5.5'
depends 'some_other_cool_cookbook', '< 8.0'

Configurable attributes

NameDefault valueConfigurable values
Version Added7.16String
Include
  • **/metadata.rb
Array

Thank you for your feedback!

×