def rule_runner() -> RuleRunner:
    return RuleRunner(
        rules=[
            *shfmt_rules(),
            *config_files.rules(),
            *external_tool.rules(),
            *source_files.rules(),
            QueryRule(LintResults, [ShfmtRequest]),
            QueryRule(FmtResult, [ShfmtRequest]),
            QueryRule(SourceFiles, [SourceFilesRequest]),
        ],
        target_types=[ShellLibrary],
    )
Example #2
0
def rules():
    return [*shfmt_rules(), *shell_fmt.rules()]
Example #3
0
def rules():
    return [*shfmt_rules(), *shell_fmt.rules(), *skip_field.rules()]