Exemplo n.º 1
0
def orphans_cmd():
    """Find and print all orphan targets"""
    orphans = Target.get_json_target_data().keys()
    for tgt in TARGET_MAP.values():
        for name in tgt.resolution_order_names:
            if name in orphans:
                orphans.remove(name)
    if orphans:
        print dump_all([orphans], default_flow_style=False)
    return len(orphans)
Exemplo n.º 2
0
Arquivo: lint.py Projeto: sg-/mbed-os
def orphans_cmd():
    """Find and print all orphan targets"""
    orphans = Target.get_json_target_data().keys()
    for tgt in TARGET_MAP.values():
        for name in tgt.resolution_order_names:
            if name in orphans:
                orphans.remove(name)
    if orphans:
        print dump_all([orphans], default_flow_style=False)
    return len(orphans)
Exemplo n.º 3
0
def all_targets_cmd():
    """Print all errors about all parts"""
    print dump_all([check_hierarchy(m) for m in TARGET_MAP.values()],
                   default_flow_style=False)
Exemplo n.º 4
0
Arquivo: lint.py Projeto: sg-/mbed-os
def all_targets_cmd():
    """Print all errors about all parts"""
    print dump_all([check_hierarchy(m) for m in TARGET_MAP.values()],
                   default_flow_style=False)