Skip to content

Commit d7ffc3f

Browse files
committed
Ruby: remove test code filtering
1 parent 74155a0 commit d7ffc3f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ruby/ql/src/queries/performance/DatabaseQueryInLoop.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ from LoopingCall loop, DataFlow::CallNode call
7171
where
7272
// Disregard loops over constants
7373
not isArrayConstant(loop.getReceiver().asExpr(), _) and
74-
// Disregard tests
75-
not call.getLocation().getFile().getAbsolutePath().matches("%test%") and
7674
// Disregard cases where the looping is influenced by the query result
7775
not usedInLoopControlGuard(call, _) and
7876
// Only report the inner most loop

0 commit comments

Comments
 (0)