Description
We currently do
ort/utils/spdx/src/main/kotlin/model/SpdxFile.kt
Lines 189 to 198 in 4629bd7
which results in the SPDX report not to be written out at all if a license is not an SPDX expression with non-deprecated SPDX IDs and / or LicenseRef-
"exceptions". This can be problematic if e.g. a scanner emits deprecated SPDX IDs, or declared licenses contain some free text license name.
My proposal is to not fail to write the report at all in this case, but just to log an error / warning in this case. This would allow the issue to become visible to the consumers of the SPDX report, instead of forcing them to get everything right even before the report gets written.
What do @mnonnenmacher and @fviernau think here?