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

Function has_basic_pom_attributes

src/packagedcode/maven.py:978–988  ·  view source on GitHub ↗

Return True if a POM object has basic attributes needed to make this a POM.

(pom)

Source from the content-addressed store, hash-verified

976
977
978def has_basic_pom_attributes(pom):
979 """
980 Return True if a POM object has basic attributes needed to make this
981 a POM.
982 """
983 basics = pom.model_version and pom.group_id and pom.artifact_id
984 if TRACE and not basics:
985 logger.debug(
986 'has_basic_pom_attributes: not a POM, incomplete GAV: '
987 '"{}":"{}":"{}"'.format(pom.model_version, pom.group_id, pom.artifact_id))
988 return basics
989
990
991def get_maven_pom(location=None, text=None):

Callers 1

get_maven_pomFunction · 0.85

Calls 2

debugMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected