Skip to content

Commit be2fd89

Browse files
committed
fix(tool/curations): Drop an obsolete category override entry
The issue has been fixed upstream and the update has been published, see https://scancode-licensedb.aboutcode.org/ms-cla.json. Keep the mechanism to make it easy to override categories in the future. Also there may arise need to make the override categories configurable in the future which means there is likely need for this mechanism. Signed-off-by: Frank Viernau <[email protected]>
1 parent 8fceead commit be2fd89

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/curations/buildSrc/src/main/kotlin/ScanCodeLicenseDbClassifications.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ private const val CATEGORY_GENERIC = "generic"
5151
private const val CATEGORY_PERMISSIVE = "permissive"
5252
private const val CATEGORY_UNKNOWN = "unknown"
5353

54-
private val OVERRIDE_LICENSE_CATEGORIES = mapOf(
55-
// https://github.com/nexB/scancode-toolkit/issues/3317.
56-
"LicenseRef-scancode-ms-cla" to CATEGORY_CLA
54+
private val OVERRIDE_LICENSE_CATEGORIES = mapOf<String, String>(
55+
// To override a category of a license add an entry like: "LicenseRef-scancode-ms-cla" to CATEGORY_CLA.
5756
).mapKeys { (license, _) -> SpdxSingleLicenseExpression.parse(license) }
5857

5958
// ScanCode does not provide categories for pairs of licenses and their belonging exceptions. So, hard-code some:

0 commit comments

Comments
 (0)