Files
codeql/python/ql/test/experimental/dataflow/coverage/classesCallGraph.ql
Rasmus Lerchedahl Petersen 9556937840 Python: address review comments
2020-08-14 11:29:58 +02:00

11 lines
460 B
Plaintext

import experimental.dataflow.callGraphConfig
from DataFlow::Node source, DataFlow::Node sink
where
source.getLocation().getFile().getBaseName() = "classes.py" and
sink.getLocation().getFile().getBaseName() = "classes.py" and
exists(CallGraphConfig cfg | cfg.hasFlow(source, sink))
select source, sink
// Ideally, we would just have 1-step paths either from argument to parameter
// or from return to call. This gives a bit more, so should be rewritten.