MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / license_keys

Method license_keys

src/licensedcode/models.py:2045–2054  ·  view source on GitHub ↗

Return a list of license keys for this rule.

(self, unique=True)

Source from the content-addressed store, hash-verified

2043 yield (f'Error invalid YAML text at: {self.identifier}, failed during saneyaml.load()')
2044
2045 def license_keys(self, unique=True):
2046 """
2047 Return a list of license keys for this rule.
2048 """
2049 if not self.license_expression:
2050 return []
2051 return self.licensing.license_keys(
2052 self.license_expression_object,
2053 unique=unique,
2054 )
2055
2056 def same_licensing(self, other):
2057 """

Callers 15

get_license_keysMethod · 0.80
get_matchFunction · 0.80
matches_have_unknownFunction · 0.80
get_license_fieldsMethod · 0.80
updateMethod · 0.80
write_spdxFunction · 0.80

Calls

no outgoing calls