mirror of
https://github.com/github/codeql.git
synced 2026-04-20 14:34:04 +02:00
Python: Add Tornado models
This commit is contained in:
committed by
Rasmus Wriedt Larsen
parent
6093bb9fd4
commit
1269a98d2b
@@ -25,6 +25,7 @@ private import semmle.python.frameworks.Multidict
|
||||
private import semmle.python.frameworks.Pycurl
|
||||
private import semmle.python.frameworks.RestFramework
|
||||
private import semmle.python.frameworks.SqlAlchemy
|
||||
private import semmle.python.frameworks.Tornado
|
||||
import semmle.python.frameworks.data.internal.ApiGraphModelsExtensions as Extensions
|
||||
|
||||
class FlaskViewClasses extends FindSubclassesSpec {
|
||||
@@ -380,6 +381,22 @@ class StringIO extends FindSubclassesSpec {
|
||||
override API::Node getAlreadyModeledClass() { result = StdlibPrivate::StringIO::classRef() }
|
||||
}
|
||||
|
||||
class TornadoApplication extends FindSubclassesSpec {
|
||||
TornadoApplication() { this = "tornado.web.Application~Subclass" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() {
|
||||
result = Tornado::TornadoModule::Web::Application::classRef()
|
||||
}
|
||||
}
|
||||
|
||||
class TornadoRequest extends FindSubclassesSpec {
|
||||
TornadoRequest() { this = "tornado.httputil.HttpServerRequest~Subclass" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() {
|
||||
result = Tornado::TornadoModule::HttpUtil::HttpServerRequest::classRef()
|
||||
}
|
||||
}
|
||||
|
||||
bindingset[fullyQualified]
|
||||
predicate fullyQualifiedToYamlFormat(string fullyQualified, string type2, string path) {
|
||||
exists(int firstDot | firstDot = fullyQualified.indexOf(".", 0, 0) |
|
||||
|
||||
Reference in New Issue
Block a user