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

Add license checker #463

Merged
merged 2 commits into from
May 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,17 @@ jobs:
script:
- npm install || exit 1
- npm run ci || exit 1
- php: 7.2
env:
- LICENSE_CHECK=1
script:
- npm install || exit 1
- npm run lc || exit 1
- php: 7.2
- php: 7.1
- php: 7.0
- php: 5.6
- php: 5.5
- php: 5.4
# multisite
- php: 7.2
env: WP_MULTISITE=1
Expand Down
33 changes: 33 additions & 0 deletions js-green-licenses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"greenLicenses": [
"GPL-2.0",
"GPL-2.0-or-later",
"GPL-2.0+",
"LGPL-2.1",
"(GPL-2.0 OR MIT)",
"MIT",
"ISC",
"BSD",
"BSD-2-Clause",
"BSD-3-Clause",
"CC0-1.0"
],
"packageWhitelist": [
"@eventespresso/react-exit-modal-typeform",
"@wordpress/jest-preset-default",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need to whitelist this package should you as it is GPL-2.0-or-later licensed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at the time there were fails. It's possible the library had an out-of-date SPDX validator. I just re-ran the checker excluding this package from the whitelist and it ran okay so I'll change this in another pull.

"js-green-licenses",
"@typeform/embed",
"scrollbar-width",
"webfontloader",
"validate-npm-package-license",
"spdx-correct",
"spdx-exceptions",
"domutils",
"domelementtype",
"domelementtype",
"nomnom",
"colors",
"underscore",
"spdx-ranges"
]
}
Loading