mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
13 lines
425 B
Plaintext
13 lines
425 B
Plaintext
import javascript
|
|
import testUtilities.ConsistencyChecking
|
|
|
|
class GeneratorFlowConfig extends DataFlow::Configuration {
|
|
GeneratorFlowConfig() { this = "GeneratorFlowConfig" }
|
|
|
|
override predicate isSource(DataFlow::Node source) { source.asExpr().getStringValue() = "source" }
|
|
|
|
override predicate isSink(DataFlow::Node sink) {
|
|
sink = any(DataFlow::CallNode call | call.getCalleeName() = "sink").getAnArgument()
|
|
}
|
|
}
|