mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: Update jQuery model
This commit is contained in:
@@ -60,11 +60,7 @@ private predicate neverReturnsJQuery(string name) {
|
||||
decl.getBaseName() = "jQuery" and
|
||||
decl.getName() = name
|
||||
|
|
||||
not decl.getDocumentation()
|
||||
.getATagByTitle("return")
|
||||
.getType()
|
||||
.getAnUnderlyingType()
|
||||
.hasQualifiedName("jQuery")
|
||||
not decl.getDocumentation().getATagByTitle("return").getType().hasUnderlyingType("jQuery")
|
||||
)
|
||||
}
|
||||
|
||||
@@ -414,6 +410,8 @@ module JQuery {
|
||||
this = DataFlow::moduleImport(["jquery", "zepto", "cash-dom"])
|
||||
or
|
||||
this.hasUnderlyingType("JQueryStatic")
|
||||
or
|
||||
this.hasUnderlyingType("jquery", "")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user