Python: restrict py/meta/points-to-call-graph to non-ignored files

This commit is contained in:
Rasmus Wriedt Larsen
2022-11-29 15:10:45 +01:00
parent d7aea228ce
commit 607639c100

View File

@@ -10,7 +10,11 @@
import python
import semmle.python.dataflow.new.internal.DataFlowPrivate
import meta.MetaMetrics
from DataFlowCall c, DataFlowCallableValue f
where c.getCallable() = f
where
c.getCallable() = f and
not c.getLocation().getFile() instanceof IgnoredFile and
not f.getLocation().getFile() instanceof IgnoredFile
select c, "Call to $@", f.getScope(), f.toString()