Beispiel #1
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        rules=filedeps.rules(),
        target_types=[
            MockTarget, MockSingleSourceTarget, ProtobufSourceTarget
        ],
    )
Beispiel #2
0
def rules():
    return [
        *cloc.rules(),
        *dependees.rules(),
        *dependencies.rules(),
        *filedeps.rules(),
        *list_roots.rules(),
        *list_targets.rules(),
        *(list_targets_old.rules() if not is_v2_exclusive else ()),
        *source_file_validator.rules(),
    ]
Beispiel #3
0
def rules():
    return [
        *cloc.rules(),
        *dependees.rules(),
        *dependencies.rules(),
        *filedeps.rules(),
        *filter_targets.rules(),
        *list_roots.rules(),
        *list_targets.rules(),
        *source_file_validator.rules(),
    ]
Beispiel #4
0
def rules():
    return [
        *count_loc.rules(),
        *dependees.rules(),
        *dependencies.rules(),
        *filedeps.rules(),
        *filter_targets.rules(),
        *list_roots.rules(),
        *list_targets.rules(),
        *paths.rules(),
        *peek.rules(),
        *regex_lint.rules(),
    ]
Beispiel #5
0
def rule_runner() -> RuleRunner:
    return RuleRunner(rules=filedeps.rules(),
                      target_types=[MockTarget, ProtobufLibrary])
Beispiel #6
0
 def rules(cls):
     return (*super().rules(), *filedeps.rules())