def get_coverage()

in cortado/cli.py [0:0]


def get_coverage(
    rules_glob: Annotated[str | None, typer.Option(help="A path glob that resolves into rule paths")] = None,
    rule_paths_csv: Annotated[str | None, typer.Option("--rules", help="Comma-separated list of rule paths")] = None,
    filter_by_maturity: Annotated[
        list[RuleMaturity] | None,
        typer.Option(help="Filter rules by maturity (`production`, `deprecated`). Supports multiple values."),
    ] = None,
    filter_by_release: Annotated[
        list[RuleRelease] | None,
        typer.Option(help="Filter rules by release (`production`, `diagnostic`). Supports multiple values."),
    ] = None,
    filter_by_type: Annotated[
        list[str] | None,
        typer.Option(help="Filter rules by rule type. Supports multiple values."),
    ] = None,
    filter_by_rta: Annotated[
        list[str] | None,
        typer.Option(help="Filter rules by RTAs. Supports multiple values."),
    ] = None,
    with_issues: Annotated[bool, typer.Option(help="Only show rules with issues")] = False,
    without_issues: Annotated[bool, typer.Option(help="Only show rules without issues")] = False,
    as_json: Annotated[bool, typer.Option(help="Output results in JSON")] = False,
    fail_if_issues: Annotated[bool, typer.Option(help="Return status code 1 if any issues found")] = False,