Skip to content

Commit 1c7f6dc

Browse files
committed
Ruby: add meta-query for calls to summarized callables
1 parent 5de8934 commit 1c7f6dc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* @name Summarized callable call sites
3+
* @description A call site for which we have a summarized callable
4+
* @kind problem
5+
* @problem.severity recommendation
6+
* @id rb/meta/summarized-callable-call-sites
7+
* @tags meta
8+
* @precision very-low
9+
*/
10+
11+
import codeql.ruby.AST
12+
import codeql.ruby.dataflow.FlowSummary
13+
14+
from Call invoke, SummarizedCallable f
15+
where f.getACall() = invoke or f.getACallSimple() = invoke
16+
select invoke, "Call to " + f

0 commit comments

Comments
 (0)