class RuboCop::Cop::Chef::Sharing::InvalidLicenseString

metadata.rb license field should include a SPDX compliant string or “all right reserved” (not case sensitive)

@example

### incorrect
license 'Apache 2.0'

### correct
license 'Apache-2.0'
license 'all rights reserved'

list of valid SPDX.org license strings. To build an array run this ruby: “‘ruby require ’json’ require ‘net/http’ json_data = JSON.parse(Net::HTTP.get(URI(‘raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json’))) licenses = json_data.map {|l| l }.sort “‘