mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Cleanups
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
|
||||
import python
|
||||
import LoopVariableCaptureQuery
|
||||
import semmle.python.dataflow.new.DataFlow
|
||||
import EscapingCaptureFlow::PathGraph
|
||||
|
||||
from
|
||||
|
||||
@@ -3,11 +3,11 @@ import Variables.LoopVariableCapture.LoopVariableCaptureQuery
|
||||
import utils.test.InlineExpectationsTest
|
||||
|
||||
module MethodArgTest implements TestSig {
|
||||
string getARelevantTag() { result = ["capturedVar"] }
|
||||
string getARelevantTag() { result = "capturedVar" }
|
||||
|
||||
predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
exists(CallableExpr capturing, AstNode loop, Variable var |
|
||||
escapingCapture(capturing, loop, var, _, _) and
|
||||
exists(CallableExpr capturing, Variable var |
|
||||
escapingCapture(capturing, _, var, _, _) and
|
||||
element = capturing.toString() and
|
||||
location = capturing.getLocation() and
|
||||
tag = "capturedVar" and
|
||||
|
||||
Reference in New Issue
Block a user