Skip to content

Commit 607639c

Browse files
committed
Python: restrict py/meta/points-to-call-graph to non-ignored files
1 parent d7aea22 commit 607639c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/ql/src/meta/analysis-quality/CallGraph.ql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111
import python
1212
import semmle.python.dataflow.new.internal.DataFlowPrivate
13+
import meta.MetaMetrics
1314

1415
from DataFlowCall c, DataFlowCallableValue f
15-
where c.getCallable() = f
16+
where
17+
c.getCallable() = f and
18+
not c.getLocation().getFile() instanceof IgnoredFile and
19+
not f.getLocation().getFile() instanceof IgnoredFile
1620
select c, "Call to $@", f.getScope(), f.toString()

0 commit comments

Comments
 (0)