Skip to main content

EmptyMetadataField

All Cookstyle Cops


The department is: Chef/Sharing

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


Enabled by default Supports autocorrection Target Chef Version
Enabled No All 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

Name Default value Configurable values
Version Added 5.8.0 String
Include
  • **/metadata.rb
Array

Was this page helpful?

×








Search Results