Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74155a0 commit d7ffc3fCopy full SHA for d7ffc3f
1 file changed
ruby/ql/src/queries/performance/DatabaseQueryInLoop.ql
@@ -71,8 +71,6 @@ from LoopingCall loop, DataFlow::CallNode call
71
where
72
// Disregard loops over constants
73
not isArrayConstant(loop.getReceiver().asExpr(), _) and
74
- // Disregard tests
75
- not call.getLocation().getFile().getAbsolutePath().matches("%test%") and
76
// Disregard cases where the looping is influenced by the query result
77
not usedInLoopControlGuard(call, _) and
78
// Only report the inner most loop
0 commit comments