From fba87a4d02db3b247fca9f0a9cb36e05427a61bb Mon Sep 17 00:00:00 2001 From: anushkagupta200615-jpg Date: Tue, 30 Jun 2026 20:18:30 +0530 Subject: [PATCH] Fix #1135: Connect PythonASTAnalyzer to the analysis pipeline This commit modifies ast_analyzer.py to correctly call analyze_python_ast(source) so that the PythonASTAnalyzer's results are actually included in the final issues list. --- backend/app/services/ast_analyzer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/services/ast_analyzer.py b/backend/app/services/ast_analyzer.py index a01602fa..6dcbfd41 100644 --- a/backend/app/services/ast_analyzer.py +++ b/backend/app/services/ast_analyzer.py @@ -306,6 +306,7 @@ def walk(node, depth): def analyze(source: str) -> list[dict]: tree = ast.parse(source) issues = [] + issues += analyze_python_ast(source) issues += detect_unreachable_code(tree, source) issues += detect_unused_imports(tree, source) issues += detect_unused_arguments(tree, source)