Ruby: remove test code filtering

This commit is contained in:
yoff
2025-02-06 18:10:06 +01:00
parent 74155a0214
commit d7ffc3fc77

View File

@@ -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