MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-workbench / getLicensePolicyLabel

Function getLicensePolicyLabel

src/services/models/flatFile.ts:420–434  ·  view source on GitHub ↗
(policy: LicensePolicy[])

Source from the content-addressed store, hash-verified

418}
419
420function getLicensePolicyLabel(policy: LicensePolicy[]) {
421 if (!policy) {
422 return [];
423 }
424
425 // @TODO - Support Comprehensive renderer in Tableview
426 // return policy.map((policy) => ({
427 // label: policy["label"],
428 // license_key: policy["license_key"],
429 // }));
430
431 return policy.map(
432 (policy) => `${policy["license_key"]} - ${policy["label"]}`
433 );
434}
435
436function getCopyrightValues(
437 array: unknown[],

Callers 1

flattenFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected