lib/rubocop/cop/chef/sharing/invalid_license_string.rb in cookstyle-6.16.4 vs lib/rubocop/cop/chef/sharing/invalid_license_string.rb in cookstyle-6.16.7
- old
+ new
@@ -456,9 +456,10 @@
'mit license': 'MIT',
'UNLICENSED': 'all rights reserved',
}.freeze
MSG = 'Cookbook metadata.rb does not use a SPDX compliant license string or "all rights reserved". See https://spdx.org/licenses/ for a complete list of license identifiers.'
+ RESTRICT_ON_SEND = [:license].freeze
def_node_matcher :license?, '(send nil? :license $str ...)'
def on_send(node)
license?(node) do |license|