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

Function vendor_mapper

src/packagedcode/phpcomposer.py:284–293  ·  view source on GitHub ↗

Vendor is the first part of the name element. https://getcomposer.org/doc/04-schema.md#name

(package)

Source from the content-addressed store, hash-verified

282
283
284def vendor_mapper(package):
285 """
286 Vendor is the first part of the name element.
287 https://getcomposer.org/doc/04-schema.md#name
288 """
289 if package.namespace:
290 package.parties.append(
291 models.Party(type=models.party_person,
292 name=package.namespace, role='vendor'))
293 return package
294
295
296def _deps_mapper(deps, package, scope, is_runtime=False, is_optional=False):

Callers 1

build_package_dataFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected