示例#1
0
def rules():
    return [
        *collect_rules(),
        *check.rules(),
        *dependency_inference.rules(),
        *tailor.rules(),
        *target_gen.rules(),
        *target_types_rules(),
        *tool.rules(),
        *style.rules(),
        *pex_rules(),
        *tffmt_rules(),
    ]
示例#2
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        target_types=[TerraformModuleTarget],
        rules=[
            *external_tool.rules(),
            *check.rules(),
            *tool.rules(),
            *style.rules(),
            *source_files.rules(),
            QueryRule(CheckResults, (TerraformCheckRequest, )),
            QueryRule(SourceFiles, (SourceFilesRequest, )),
        ],
    )
示例#3
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        target_types=[TerraformModuleTarget],
        rules=[
            *external_tool.rules(),
            *fmt.rules(),
            *tffmt.rules(),
            *tool.rules(),
            *style.rules(),
            *source_files.rules(),
            QueryRule(LintResults, (TffmtRequest, )),
            QueryRule(FmtResult, (TffmtRequest, )),
            QueryRule(SourceFiles, (SourceFilesRequest, )),
        ],
    )