def METHOD_NAME(rules: RulesCollection) -> RenderableType:
    """Return rules as string."""
    table = Table(show_header=False, header_style="title", box=box.SIMPLE)
    for rule in rules.alphabetical():
        tag = f"[dim] ({', '.join(rule.tags)})[/dim]" if rule.tags else ""
        table.add_row(
            f"[link={RULE_DOC_URL}{rule.id}/]{rule.id}[/link]",
            rule.shortdesc + tag,
        )
    return table