---
SMQM: 003
Author: Nathen Harvey <nharvey@chef.io>
Status: In Progress
License: Apache 2.0
---

# Cookbook has an open source license

Cookbook is licensed using an open source license.

Acceptable licenses are:

* Apache 2.0
* GNU Public License 2.0
* GNU Public License 3.0
* MIT

Cookbooks without open source licenses may not be modifiable and may not even be legally used by consumers.

### Verification

Pseudocode or actual code that can be used to automatically verify the rule and/or assign appropriate points.

    it 'has an open source license' do
      expect(cookbook_version.license).to match(/Apache 2.0|apache2|GNU Public License 2.0|gplv2|GNU Public License 3.0|gplv3|MIT/i)
    end

---
SMQM: 003
Author: Nathen Harvey <nharvey@chef.io>
Status: In Progress
License: Apache 2.0
---

# Cookbook has an open source license

Cookbook is licensed using an open source license.

Acceptable licenses are:

* Apache-2.0, apachev2
* GPL-2.0, gplv2
* GPL-3.0, gplv3
* MIT, mit

Cookbooks without open source licenses may not be modifiable and may not even be legally used by consumers.

### Verification

Pseudocode or actual code that can be used to automatically verify the rule and/or assign appropriate points.

    it 'has an open source license' do
      expect(cookbook_version.license).to match(/Apache-2.0|apachev2|GPL-2.0|gplv2|GPL-3.0|gplv3|MIT|mit/i)
    end

Update the valid license strings
Update the valid license strings

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
