feature/GPT #12

Merged
sangge merged 18 commits from feature/GPT into main 2024-04-29 18:58:49 +08:00
Showing only changes of commit f0a915c0fd - Show all commits

View File

@ -2,6 +2,7 @@ import re
from typing import Dict, List, Tuple
from .utils import remove_comments
def find_dangerous_functions(
file_content: str, file_extension: str
) -> Dict[str, List[Tuple[int, str]]]:
@ -35,3 +36,4 @@ def find_dangerous_functions(
if re.search(pattern, clean_line):
classified_results[risk_level].append((line_number, clean_line))
return classified_results