mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Ruby: add query for measuring call graph
This commit is contained in:
15
ruby/ql/src/queries/meta/CallGraph.ql
Normal file
15
ruby/ql/src/queries/meta/CallGraph.ql
Normal 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()
|
||||
Reference in New Issue
Block a user