File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
csaf_2_1/recommendedTests Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ const DEPRECATED_SPDX_LICENSE_KEYS = new Set(
4141const validateSchema = ajv . compile ( inputSchema )
4242
4343/**
44- * Check whether the license identifiers ref is a deprecated Aboutcode's license
44+ * Check whether the license identifiers ref is a deprecated AboutCode's license
45+ * Ignores other license inventorying entities
4546 * @param {string } licenseRefToCheck
4647 * @return {boolean }
4748 */
@@ -133,13 +134,13 @@ export function recommendedTest_6_2_44(doc) {
133134 const licenseToCheck = doc . document . license_expression
134135
135136 if ( validate ( licenseToCheck ) . valid ) {
136- const deprecatedLicenseIdentifier =
137+ const deprecatedLicenseIdentifiers =
137138 allDeprecatedInLicenseString ( licenseToCheck )
138139
139- deprecatedLicenseIdentifier . forEach ( ( licenseKey ) => {
140+ deprecatedLicenseIdentifiers . forEach ( ( licenseKey ) => {
140141 ctx . warnings . push ( {
141142 instancePath : '/document/license_expression' ,
142- message : `License identifier ${ licenseKey } is deprecated ` ,
143+ message : `License identifier ${ licenseKey } is deprecated ` ,
143144 } )
144145 } )
145146 }
You can’t perform that action at this time.
0 commit comments