Ruby: add meta-query for calls to summarized callables

This commit is contained in:
Asger F
2023-05-26 11:34:23 +02:00
parent 5de8934525
commit 1c7f6dc32e

View File

@@ -0,0 +1,16 @@
/**
* @name Summarized callable call sites
* @description A call site for which we have a summarized callable
* @kind problem
* @problem.severity recommendation
* @id rb/meta/summarized-callable-call-sites
* @tags meta
* @precision very-low
*/
import codeql.ruby.AST
import codeql.ruby.dataflow.FlowSummary
from Call invoke, SummarizedCallable f
where f.getACall() = invoke or f.getACallSimple() = invoke
select invoke, "Call to " + f