We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eaeb3b commit ae837d9Copy full SHA for ae837d9
2 files changed
ql/src/codeql_ruby/ApiGraphs.qll
@@ -270,8 +270,7 @@ module API {
270
or
271
name = read.getName() and
272
not exists(resolveScopeExpr(read)) and
273
- not exists(read.getScopeExpr()) and
274
- not exists(read.getValue())
+ not exists(read.getScopeExpr())
275
)
276
277
exists(DataFlow::LocalSourceNode src, DataFlow::LocalSourceNode pred |
ql/test/library-tests/dataflow/api-graphs/test1.rb
@@ -13,7 +13,7 @@
13
Foo::Bar::Baz #$ use=getMember("Foo").getMember("Bar").getMember("Baz")
14
15
Const = [1, 2, 3]
16
-Const.each do |c|
+Const.each do |c| #$ use=getMember("Const").getReturn("each")
17
puts c
18
end
19
0 commit comments