mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
Ruby: remove test code filtering
This commit is contained in:
@@ -71,8 +71,6 @@ from LoopingCall loop, DataFlow::CallNode call
|
||||
where
|
||||
// Disregard loops over constants
|
||||
not isArrayConstant(loop.getReceiver().asExpr(), _) and
|
||||
// Disregard tests
|
||||
not call.getLocation().getFile().getAbsolutePath().matches("%test%") and
|
||||
// Disregard cases where the looping is influenced by the query result
|
||||
not usedInLoopControlGuard(call, _) and
|
||||
// Only report the inner most loop
|
||||
|
||||
Reference in New Issue
Block a user