Ruby: add query for measuring call graph

This commit is contained in:
Asger Feldthaus
2022-02-22 14:42:05 +01:00
parent c7c97d5bbb
commit 5390faeb8a

View File

@@ -0,0 +1,15 @@
/**
* @name Call graph
* @description An edge in the call graph.
* @kind problem
* @problem.severity recommendation
* @id rb/meta/call-graph
* @tags meta
* @precision very-low
*/
import codeql.ruby.AST
from Call invoke, Callable f
where invoke.getATarget() = f
select invoke, "Call to $@", f, f.toString()