-
Notifications
You must be signed in to change notification settings - Fork 178
Add license PR checks + how to run it locally #1235
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,6 +103,22 @@ If you decide to use a different license for your work, follow the same pattern: | |
|
||
- If more than one license applies to the source file, use an SPDX license expression (see [SPDX Specification, Appendix IV](https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60)), to reflect the presence of multiple licenses in your *LICENSE.md* file and in each source file. | ||
|
||
## License check in pull requests | ||
|
||
We use scancode-toolkit to enforce the license in binaries and libraries. Please see "Continuous integration (CI) testing" section for more information. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can move There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm agnostic on this one. |
||
|
||
To scan the files in SCANCODE folder, please use: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in the |
||
|
||
``` | ||
scancode --license --json-pp mbed-os.json SCANCODE | ||
``` | ||
|
||
Run our script to check if files confirm to this license guide: | ||
|
||
``` | ||
python tools/test/travis-ci/scancode-evaluate.py -f mbed-os.json | ||
``` | ||
|
||
## Contributing to the Mbed OS codebase | ||
|
||
### Mbed OS principles | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only a permissive license in the files,