Ejemplo n.º 1
0
def rules():
    return [
        # project_info
        *cloc.rules(),
        *filedeps.rules(),
        *list_backends.rules(),
        *list_roots.rules(),
        *list_target_types.rules(),
        *list_targets.rules(),
        *list_targets_old.rules(),
        # goals
        *binary.rules(),
        *fmt.rules(),
        *lint.rules(),
        *repl.rules(),
        *run.rules(),
        *test.rules(),
        # util_rules
        *determine_source_files.rules(),
        *distdir.rules(),
        *filter_empty_sources.rules(),
        *strip_source_roots.rules(),
        # other
        *target_rules(),
    ]
Ejemplo n.º 2
0
 def rules(cls):
     return (
         *super().rules(),
         *determine_source_files_rules(),
         *strip_source_roots_rules(),
         *target_rules(),
     )
Ejemplo n.º 3
0
def rules():
    return [
        determine_configurations_with_sources,
        determine_targets_with_sources,
        RootRule(ConfigurationsWithSourcesRequest),
        RootRule(TargetsWithSourcesRequest),
        *target_rules(),
    ]
Ejemplo n.º 4
0
def rules():
    return [
        strip_source_roots_from_snapshot,
        strip_source_roots_from_sources_field,
        subsystem_rule(SourceRootConfig),
        RootRule(StripSnapshotRequest),
        RootRule(StripSourcesFieldRequest),
        *target_rules(),
    ]
Ejemplo n.º 5
0
 def rules(cls):
     return (
         *super().rules(),
         *target_rules(),
         RootRule(TargetsWithOrigins),
         UnionRule(cls.ConfigSuperclass, cls.ConfigSubclass1),
         UnionRule(cls.ConfigSuperclass, cls.ConfigSubclass2),
         UnionRule(cls.ConfigSuperclassWithOrigin,
                   cls.ConfigSubclassWithOrigin),
     )
Ejemplo n.º 6
0
def rules():
    return [
        *cloc.rules(),
        *binary.rules(),
        *fmt.rules(),
        *lint.rules(),
        *list_roots.rules(),
        *list_targets.rules(),
        *determine_source_files.rules(),
        *filedeps.rules(),
        *repl.rules(),
        *run.rules(),
        *strip_source_roots.rules(),
        *distdir.rules(),
        *test.rules(),
        *target_rules(),
    ]
Ejemplo n.º 7
0
 def rules(cls):
     return (*super().rules(), *target_rules(),
             RootRule(HydrateSourcesRequest))
Ejemplo n.º 8
0
 def rules(cls):
     return (*super().rules(), *filedeps.rules(), *target_rules())
Ejemplo n.º 9
0
 def rules(cls):
     return [*target_rules(), RootRule(SourcesRequest)]