Skip to main content

Chef/Sharing/EmptyMetadataField

Cookstyle cops page

The Cookstyle cops department: Chef/Sharing

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

metadata.rb should not include fields with an empty string. Either don’t include the field or add a value.

Examples

incorrect

license ''

correct

license 'Apache-2.0'

Configurable attributes

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

Thank you for your feedback!

×











Search Results