Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check license against SPDX license list #701

Merged
merged 7 commits into from
Aug 24, 2021

Conversation

strangedev
Copy link
Contributor

This change adds validation of the package's license against the SPDX license list. Previously, we enforced a list of allowed license IDs that is defined by https://github.com/thenativeweb/npm-package-json-lint-config-tnw. This has proven unpractical, as many license may be used and we can't provide useful defaults for everyone. We decided against enforcing a specific set of licenses and are instead focusing on SPDX now. This is mainly to guard against typos and deprecation. The roboter will now check the package's license against the list of SPDX license IDs during its qa step. The default behavior is to reject non-SPDX licenses, as well as deprecated licenses. Both can be disabled on a per-project basis using the licenseCheck.json configuration file.

goloroden
goloroden previously approved these changes Aug 24, 2021
@strangedev strangedev marked this pull request as ready for review August 24, 2021 11:15
@goloroden goloroden enabled auto-merge (squash) August 24, 2021 11:38
@goloroden goloroden merged commit 6125043 into main Aug 24, 2021
@goloroden goloroden deleted the feat/check-license-against-spdx branch August 24, 2021 14:12
goloroden pushed a commit that referenced this pull request Aug 24, 2021
# [12.2.0](12.1.3...12.2.0) (2021-08-24)

### Features

* check license against SPDX license list ([#701](#701)) ([6125043](6125043))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants