mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Ruby: add meta-query for calls to summarized callables
This commit is contained in:
16
ruby/ql/src/queries/meta/SummarizedCallableCallSites.ql
Normal file
16
ruby/ql/src/queries/meta/SummarizedCallableCallSites.ql
Normal 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
|
||||
Reference in New Issue
Block a user