mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
Python: Add invoke model
This commit is contained in:
committed by
Rasmus Wriedt Larsen
parent
699b6b8bef
commit
cdb0ac524d
@@ -19,6 +19,7 @@ private import semmle.python.frameworks.ClickhouseDriver
|
||||
private import semmle.python.frameworks.Aiohttp
|
||||
private import semmle.python.frameworks.Fabric
|
||||
private import semmle.python.frameworks.Httpx
|
||||
private import semmle.python.frameworks.Invoke
|
||||
import semmle.python.frameworks.data.internal.ApiGraphModelsExtensions as Extensions
|
||||
|
||||
class FlaskViewClasses extends FindSubclassesSpec {
|
||||
@@ -294,6 +295,14 @@ class HttpxClient extends FindSubclassesSpec {
|
||||
override API::Node getAlreadyModeledClass() { result = HttpxModel::Client::classRef() }
|
||||
}
|
||||
|
||||
class InvokeContext extends FindSubclassesSpec {
|
||||
InvokeContext() { this = "invoke.context.Context~Subclass" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() {
|
||||
result = Invoke::InvokeModule::Context::ContextClass::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