mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Polish Calls naming
This commit is contained in:
@@ -28,7 +28,7 @@ private module NoSQL {
|
||||
.getMember("MongoClient")
|
||||
.getReturn()
|
||||
.getAMember*()
|
||||
.getMember(any(PyMongoMethods pyMongoMethods))
|
||||
.getMember(any(PyMongoMethods pyMongoMethod))
|
||||
.getACall()
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ private module NoSQL {
|
||||
}
|
||||
|
||||
private class PyMongoFlaskMethods extends string {
|
||||
PyMongoFlaskMethods() { this in ["find_one_or_404"] or this instanceof PyMongoMethods }
|
||||
PyMongoFlaskMethods() { this in ["find_one_or_404", any(PyMongoMethods pyMongoMethod)] }
|
||||
}
|
||||
|
||||
private class PyMongoFlaskCall extends DataFlow::CallCfgNode, NoSQLQuery::Range {
|
||||
@@ -46,7 +46,7 @@ private module NoSQL {
|
||||
.getMember("PyMongo")
|
||||
.getReturn()
|
||||
.getAMember*()
|
||||
.getMember(any(PyMongoFlaskMethods pyMongoFlaskMethods))
|
||||
.getMember(any(PyMongoFlaskMethods pyMongoFlaskMethod))
|
||||
.getACall()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user