INNER CODE UNIT · Python

update_skill_md

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

def update_skill_md(language_to_rules: dict[str, list[str]], skill_path: str) -> None:
    """
    Update SKILL.md with language-to-rules mapping table.

    Args:
        language_to_rules: Dictionary mapping languages to rule files
        skill_path: Path to SKILL.md file
    """
    # Generate markdown table
    table_lines = [
        "| Language | Rule Files to Apply |",
        "|----------|---------------------|",
    ]

    for language in sorted(language_to_rules.keys()):
        rules = sorted(language_to_rules[language])
        rules_str = ", ".join(rules)
        table_lines.append(f"| {language} | {rules_str} |")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…