|
|
@ -101,8 +101,10 @@ EOT
|
|
|
|
if (!empty($manifest['license'])) {
|
|
|
|
if (!empty($manifest['license'])) {
|
|
|
|
$licenseValidator = new SpdxLicenseIdentifier();
|
|
|
|
$licenseValidator = new SpdxLicenseIdentifier();
|
|
|
|
if (!$licenseValidator->validate($manifest['license'])) {
|
|
|
|
if (!$licenseValidator->validate($manifest['license'])) {
|
|
|
|
$warnings[] = sprintf('License %s is not a valid SPDX license identifier', json_encode($manifest['license']));
|
|
|
|
$warnings[] = sprintf(
|
|
|
|
$warnings[] = 'see http://www.spdx.org/licenses/';
|
|
|
|
'License %s is not a valid SPDX license identifier, see http://www.spdx.org/licenses/',
|
|
|
|
|
|
|
|
json_encode($manifest['license'])
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$warnings[] = 'No license specified, it is recommended to do so';
|
|
|
|
$warnings[] = 'No license specified, it is recommended to do so';
|
|
|
|