maven/internal/maven_repository.bzl
def should_omit(names, artifact):
    """Return true if the given artifact matches on of the patterns given in [names].

    Foreach name in the given list, see if it is either (1) a
    substring of the maven coordinate or (2) equal to the workspace
    name.  For example, 'org.scala-lang' will return true for all
    artifacts in that group, and 'org_scala_lang_scala_reflect' will
    true true for that specific workspace.

    Args:
      name: string_list - a list of string patterns to test.
      artifact: !Artifact - the artifact object to match
    Returns: boolean
    """
    for name in names:
        if name in artifact["coordinate"]:
            return True
        if name == artifact["ws_name"]:
            return True
    return False
Return true if the given artifact matches on of the patterns given in [names].

    Foreach name in the given list, see if it is either (1) a
    substring of the maven coordinate or (2) equal to the workspace
    name.  For example, 'org.scala-lang' will return true for all
    artifacts in that group, and 'org_scala_lang_scala_reflect' will
    true true for that specific workspace.

    Args:
      name: string_list - a list of string patterns to test.
      artifact: !Artifact - the artifact object to match
    Returns: boolean
    
Return true if the given artifact matches on of the patterns given in [names].
Foreach name in the given list, see if it is either (1) a
substring of the maven coordinate or (2) equal to the workspace
name.  For example, 'org.scala-lang' will return true for all
artifacts in that group, and 'org_scala_lang_scala_reflect' will
true true for that specific workspace.
Return true if the given artifact matches on of the patterns given in [ names ] . Foreach name in the given list see if it is either ( 1 ) a substring of the maven coordinate or ( 2 ) equal to the workspace name . For example ' org . scala - lang ' will return true for all artifacts in that group and ' org_scala_lang_scala_reflect ' will true true for that specific workspace .
def should_omit(names, artifact):
    for name in names:
        if name in artifact["coordinate"]:
            return True
        if name == artifact["ws_name"]:
            return True
    return False
def should_omit ( names , artifact ) : for name in names : if name in artifact [ "coordinate" ] : return True if name == artifact [ "ws_name" ] : return True return False
Return true if the given artifact matches on of the patterns given in [names].
Return true if the given artifact matches on of the patterns given in [ names ] .
"""Return true if the given artifact matches on of the patterns given in [names].

    Foreach name in the given list, see if it is either (1) a
    substring of the maven coordinate or (2) equal to the workspace
    name.  For example, 'org.scala-lang' will return true for all
    artifacts in that group, and 'org_scala_lang_scala_reflect' will
    true true for that specific workspace.

    Args:
      name: string_list - a list of string patterns to test.
      artifact: !Artifact - the artifact object to match
    Returns: boolean
    """
names
artifact
the artifact object to match
the artifact object to match
name
a list of string patterns to test.
a list of string patterns to test .