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.
2 parents f3eac55 + 0442631 commit a298a39Copy full SHA for a298a39
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