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

Method check_owners

etc/scripts/licenses/synclic.py:640–651  ·  view source on GitHub ↗

Check that all licenses have a proper owner. Return a list of owners that do not exists.

(self, licenses)

Source from the content-addressed store, hash-verified

638 return lic
639
640 def check_owners(self, licenses):
641 """
642 Check that all licenses have a proper owner. Return a list of owners
643 that do not exists.
644 """
645 downers = set()
646 for lic in licenses:
647 lico = lic.owner
648 owner = get_owner(self.api_base_url, self.api_key, lico)
649 if not owner:
650 downers.add(lico)
651 return sorted(downers)
652
653 def fetch_spdx_license_details(
654 self,

Callers

nothing calls this directly

Calls 2

get_ownerFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected