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

Function check_declared_licenses

src/summarycode/score.py:299–305  ·  view source on GitHub ↗

Check if at least one of the licenses in `license_match_objects` is good. If so, return True. Otherwise, return False.

(license_match_objects)

Source from the content-addressed store, hash-verified

297
298
299def check_declared_licenses(license_match_objects):
300 """
301 Check if at least one of the licenses in `license_match_objects` is good.
302
303 If so, return True. Otherwise, return False.
304 """
305 return any(is_good_license(license_match_object) for license_match_object in license_match_objects)
306
307
308def get_field_values_from_codebase_resources(

Callers 1

compute_license_scoreFunction · 0.85

Calls 1

is_good_licenseFunction · 0.85

Tested by

no test coverage detected