Esempio n. 1
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(),
    ]
Esempio n. 2
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(),
    ]
Esempio n. 3
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        rules=[
            *filter_targets.rules(),
            *list_targets.rules(),
            generate_mock_generated_target,
            UnionRule(GenerateTargetsRequest, MockGenerateTargetsRequest),
        ],
        target_types=[
            MockTarget, MockFileTargetGenerator, MockNonfileTargetGenerator
        ],
    )
Esempio n. 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(),
    ]