mbed-os/tools/test/travis-ci
Harrison Mutai e93a3e2beb Refactor workaround for scancode evaluation of PBL
Add function "has_binary_license" to check if a file has a
non-permissive license contains one. PBL is not recognized by scancode,
causing it to be flagged as a non-permissive license. CI doesn't allow
any non-permissive licenses, although, files flageed as SPDX are
allowed. Workaround causes all files with a valid PBL to be flagged as
missing an SPDX.

Add condition in "has_spdx_text_in_scancode_output" to ignore any spdx
identifier with "unknown" in the name. Scancode erroneously matches PBL
to matched_rule.identifer "spdx-license-identifier: unknown-spdx". This
prevents the workaround from working.
2020-11-06 16:23:57 +00:00
..
doxy-spellchecker Merge pull request #13433 from LDong-Arm/refactor_device_key 2020-08-24 12:56:10 +01:00
scancode_test Add workaround for files with permissive binary licenses 2020-11-04 11:26:23 +00:00
functions.sh ci: Enable `ccache` in Travis 2020-08-21 14:17:13 +01:00
scancode-evaluate.py Refactor workaround for scancode evaluation of PBL 2020-11-06 16:23:57 +00:00
scancode_evaluate_test.py Refactor workaround for scancode evaluation of PBL 2020-11-06 16:23:57 +00:00