Skip to main content

EmptyMetadataField

The department is: EmptyMetadataField

The full name of the cop is: Chef/Sharing/EmptyMetadataField

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

metadata.rb should not include fields with an empty string. Either do not 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

Was this page helpful?

×









Search Results