class RuboCop::Cop::Chef::Sharing::EmptyMetadataField
metadata.rb should not include fields with an empty string. Either don’t include the field or add a value.
@example
### incorrect license '' ### correct license 'Apache-2.0'
Constants
- MSG
Public Instance Methods
Source
# File lib/rubocop/cop/chef/sharing/empty_metadata_field.rb, line 37 def on_send(node) field?(node) do |str| return unless str.value.empty? add_offense(str, severity: :refactor) end end