Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spdx): Allow
LicenseRef-
exceptions for licenseInfoInFiles
SPDX v2 does not allow using custom (`LicenseRef-`) IDs as exceptions and an SPDX expression. Whether / how that could be supported in future is currently being discussed, see [1]. When the SPDX reporter creates an SPDX document containing `LicenseRef-` exceptions it crashes due to an exception from `SpdxExpression.validate()`. The only SPDX V2 compliant options for preventing that crash are: 1. Come up with a whole new `LicenseRef-` license string which denotes to a text containing both, the license and the exception. 2. Allow `LicenseRef-` in the report. So, this commit implements #2 which is an easy fix, at least for the short term. [1] spdx/change-proposal#4 Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
- Loading branch information