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 4b5a203 commit b51379bCopy full SHA for b51379b
ruby/ql/src/queries/modeling/internal/Types.qll
@@ -48,7 +48,11 @@ module Types {
48
// class Type2 < Type1
49
// class Type2; include Type1
50
exists(Module m1, Module m2 |
51
- m2.getAnImmediateAncestor() = m1 and not m2.isBuiltin() and not m1.isBuiltin()
+ m2.getAnImmediateAncestor() = m1 and
52
+ not m2.isBuiltin() and
53
+ not m1.isBuiltin() and
54
+ m1.getLocation().getFile() instanceof Util::RelevantFile and
55
+ m2.getLocation().getFile() instanceof Util::RelevantFile
56
|
57
m1.getQualifiedName() = type1 and m2.getQualifiedName() = type2 and path = ""
58
)
0 commit comments