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

Function has_unknown_matches

src/licensedcode/detection.py:1242–1247  ·  view source on GitHub ↗

Return True if any of the matches in ``license_matches`` List of LicenseMatch has an `unknown` rule identifier.

(license_matches)

Source from the content-addressed store, hash-verified

1240
1241
1242def has_unknown_matches(license_matches):
1243 """
1244 Return True if any of the matches in ``license_matches`` List of LicenseMatch
1245 has an `unknown` rule identifier.
1246 """
1247 return any(match.rule.has_unknown for match in license_matches)
1248
1249
1250def is_unknown_intro(license_match):

Calls

no outgoing calls

Tested by

no test coverage detected