mbed-os/tools/test/travis-ci/scancode_test
Harrison Mutai d085e9f1ed Add workaround for files with permissive binary licenses
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-04 11:26:23 +00:00
..
scancode_test_1.json Scancode: Fix false positive reported by scancode output analyser script 2020-10-15 17:33:56 +01:00
scancode_test_2.json Scancode: Fix false positive reported by scancode output analyser script 2020-10-15 17:33:56 +01:00
scancode_test_3.json Add workaround for files with permissive binary licenses 2020-11-04 11:26:23 +00:00
scancode_test_4.json Scancode: Fix false positive reported by scancode output analyser script 2020-10-15 17:33:56 +01:00