Skip to main content

Chef/Sharing/InvalidLicenseString

Cookstyle cops page

The Cookstyle cops department: Chef/Sharing

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

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

Examples

# bad
license 'Apache 2.0'

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

Configurable attributes

NameDefault valueConfigurable values
Version Added5.2.0String
Include
  • **/metadata.rb
Array

Thank you for your feedback!

×