mirror of
https://github.com/github/codeql.git
synced 2025-12-24 20:56:33 +01:00
21 lines
573 B
Plaintext
21 lines
573 B
Plaintext
/**
|
|
* @name Call graph
|
|
* @description An edge in the call graph.
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @id py/meta/call-graph
|
|
* @tags meta
|
|
* @precision very-low
|
|
*/
|
|
|
|
import python
|
|
import semmle.python.dataflow.new.internal.DataFlowPrivate
|
|
import meta.MetaMetrics
|
|
|
|
from DataFlowCall call, DataFlowCallable target
|
|
where
|
|
target = viableCallable(call) and
|
|
not call.getLocation().getFile() instanceof IgnoredFile and
|
|
not target.getScope().getLocation().getFile() instanceof IgnoredFile
|
|
select call, "Call to $@", target.getScope(), target.toString()
|