Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions libs/openant-core/parsers/javascript/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,8 +877,11 @@ def apply_codeql_filter(self) -> bool:
# Build mapping of file -> [(start_line, end_line, func_id)]
file_functions = {}
for func_id, func_data in functions.items():
# Extract file path from func_id (format: "file/path.ts:functionName")
colon_idx = func_id.rfind(":")
# Extract file path from func_id (format: "file/path.ts:functionName").
# The separator is the FIRST colon: functionName may itself contain
# colons (e.g. "src/r.ts:express(GET:/items/:id)"). This matches the
# dependency_resolver contract (`funcId.split(':')[0]`).
colon_idx = func_id.find(":")
if colon_idx > 0:
file_path = func_id[:colon_idx]
start_line = func_data.get('startLine', 0)
Expand Down
Loading
Loading