class RuboCop::Cop::Chef::Sharing::DefaultMetadataMaintainer

Metadata contains default maintainer information from the `chef generate cookbook` command. This should be updated to reflect that actual maintainer of the cookbook.

@example

#### incorrect
maintainer 'YOUR_COMPANY_NAME'
maintainer_email 'YOUR_EMAIL'
maintainer 'The Authors'
maintainer_email 'you@example.com'
#### correct
maintainer 'Bob Bobberson'
maintainer_email 'bob@bobberson.com'

Constants

MSG
RESTRICT_ON_SEND

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/cop/chef/sharing/default_maintainer_metadata.rb, line 41
def on_send(node)
  default_metadata?(node) do
    add_offense(node, message: MSG, severity: :refactor)
  end
end