INNER CODE UNIT · Python
__init__
project-codeguard/rules · src/converter.py:109
def __init__(self, formats: list[BaseFormat]):
"""
Initialize the converter with version info and supported formats.
Args:
formats: List of BaseFormat instances to use for conversion.
"""
self.formats = formats
def parse_rule(self, content: str, filename: str) -> ProcessedRule:
"""
Parse a markdown file with required frontmatter.
Args:
content: Full file content with YAML frontmatter
filename: Name of the file being parsed
Returns: