Skip to content

Commit 15432a0

Browse files
committed
Remove unused interfaces
1 parent bdeccff commit 15432a0

3 files changed

Lines changed: 1 addition & 14 deletions

File tree

sync_ai_rules/core/parser_interface.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ class InputParser(ABC):
1717
def name(self) -> str:
1818
"""Unique name for this parser."""
1919

20-
@property
21-
@abstractmethod
22-
def supported_extensions(self) -> List[str]:
23-
"""File extensions this parser can handle."""
24-
2520
@property
2621
def source_directories(self) -> List[str]:
2722
"""

sync_ai_rules/parsers/code_review_parser.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@ class CodeReviewParser(InputParser):
1818
def name(self) -> str:
1919
return "code-review"
2020

21-
@property
22-
def supported_extensions(self) -> list[str]:
23-
return [".md"]
24-
2521
@property
2622
def source_directories(self) -> list[str]:
2723
"""Code review parser scans .code_review/ directory."""
2824
return [".code_review"]
2925

3026
def can_parse(self, file_path: str) -> bool:
3127
"""Check if this parser can handle the given file."""
32-
return ".code_review" in file_path and file_path.endswith(".md")
28+
return file_path.endswith(".md")
3329

3430
def parse(self, file_path: str, context: Dict[str, Any]) -> Optional[RuleMetadata]:
3531
"""Parse a code review markdown file and extract metadata."""

sync_ai_rules/parsers/mdc_parser.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ class MDCParser(InputParser):
2020
def name(self) -> str:
2121
return "mdc"
2222

23-
@property
24-
def supported_extensions(self) -> List[str]:
25-
return [".mdc"]
26-
2723
@property
2824
def source_directories(self) -> List[str]:
2925
"""MDC parser scans .cursor/rules/ directory."""

0 commit comments

Comments
 (0)