mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Python: Add aioch model
This commit is contained in:
committed by
Rasmus Wriedt Larsen
parent
875fa0b8f0
commit
b5bffb2220
@@ -29,6 +29,7 @@ private import semmle.python.frameworks.Tornado
|
||||
private import semmle.python.frameworks.Urllib3
|
||||
private import semmle.python.frameworks.Pydantic
|
||||
private import semmle.python.frameworks.Peewee
|
||||
private import semmle.python.frameworks.Aioch
|
||||
import semmle.python.frameworks.data.internal.ApiGraphModelsExtensions as Extensions
|
||||
|
||||
class FlaskViewClasses extends FindSubclassesSpec {
|
||||
@@ -424,6 +425,12 @@ class PeeweeDatabase extends FindSubclassesSpec {
|
||||
override API::Node getAlreadyModeledClass() { result = Peewee::Database::subclassRef() }
|
||||
}
|
||||
|
||||
class AiochClient extends FindSubclassesSpec {
|
||||
AiochClient() { this = "aioch.Client~Subclass" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() { result = Aioch::Client::subclassRef() }
|
||||
}
|
||||
|
||||
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