mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
Python: Add Flask app and blueprint models
This commit is contained in:
committed by
Rasmus Wriedt Larsen
parent
a81f8ea54d
commit
6128c89518
@@ -275,6 +275,18 @@ class DjangoHttpRequest extends FindSubclassesSpec {
|
||||
}
|
||||
}
|
||||
|
||||
class FlaskClass extends FindSubclassesSpec {
|
||||
FlaskClass() { this = "flask.Flask~Subclass" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() { result = Flask::FlaskApp::classRef() }
|
||||
}
|
||||
|
||||
class FlaskBlueprint extends FindSubclassesSpec {
|
||||
FlaskBlueprint() { this = "flask.Blueprint~Subclass" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() { result = Flask::Blueprint::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