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 c265c15 commit 0442631Copy full SHA for 0442631
ruby/ql/src/queries/modeling/internal/Util.qll
@@ -43,6 +43,7 @@ string getArgumentPath(DataFlow::ParameterNode paramNode) {
43
*/
44
predicate pathToMethod(DataFlow::MethodNode method, string type, string path) {
45
method.getLocation().getFile() instanceof RelevantFile and
46
+ method.isPublic() and // only public methods are modeled
47
exists(DataFlow::ModuleNode mod, string methodName |
48
method = mod.getOwnInstanceMethod(methodName) and
49
if methodName = "initialize"
0 commit comments