INNER CODE UNIT · Python

convert_rules

project-codeguard/rules · src/convert_to_ide_formats.py:107

def convert_rules(
    input_path: str,
    output_dir: str = "dist",
    include_agentskills: bool = True,
    version: str = None,
    filter_tags: list[str] = None,
) -> dict[str, list[str]]:
    """
    Convert rule file(s) to all supported IDE formats using RuleConverter.

    Args:
        input_path: Path to a single .md file or folder containing .md files
        output_dir: Output directory (default: 'dist/')
        include_agentskills: Whether to generate Agent Skills format (default: True, only for core rules)
        version: Version string to use (default: read from pyproject.toml)
        filter_tags: Optional list of tags to filter by (AND logic, case-insensitive)

    Returns:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…