Skip to content

Commit f08c649

Browse files
feat(CSAF2.1): #356 add mandatory test 6.1.55 - load license exceptions
1 parent 61d537f commit f08c649

File tree

4 files changed

+11866
-3647
lines changed

4 files changed

+11866
-3647
lines changed

csaf_2_1/mandatoryTests/mandatoryTest_6_1_55.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,15 @@ const ABOUT_CODE_LICENSE_REF_PREFIX = 'LicenseRef-scancode-'
4949

5050
const ABOUT_CODE_LICENSE_KEYS = new Set(
5151
license_information.licenses
52-
.filter((license) => license.source === 'aboutCode')
52+
.filter(
53+
(license) => license.source === 'aboutCode' && !license.is_exception
54+
)
55+
.map((license) => license.license_key)
56+
)
57+
58+
const ABOUT_CODE_EXCEPTION_KEYS = new Set(
59+
license_information.licenses
60+
.filter((license) => license.source === 'aboutCode' && license.is_exception)
5361
.map((license) => license.license_key)
5462
)
5563

0 commit comments

Comments
 (0)