Skip to content

Commit 6b45f18

Browse files
committed
Include codeflows when filtering applicable findings
1 parent 08a5422 commit 6b45f18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/codemodder/file_context.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ def get_findings_for_location(self, line_number: int):
5858
location.start.line <= line_number <= location.end.line
5959
for location in result.locations
6060
)
61+
or any(
62+
location.start.line <= line_number <= location.end.line
63+
for codeflow in result.codeflows
64+
for location in codeflow
65+
)
6166
and result.finding is not None
6267
]
6368

0 commit comments

Comments
 (0)