Model Apply methods correctly

They were accidentally modeled as functions
This commit is contained in:
Owen Mansel-Chan
2021-03-05 15:55:44 +00:00
parent 769fddeb38
commit 0a48fef0e7

View File

@@ -45,12 +45,12 @@ private module EvanphxJsonPatch {
}
}
private class Apply extends TaintTracking::FunctionModel {
private class Apply extends TaintTracking::FunctionModel, Method {
Apply() {
exists(string fn |
fn in ["Apply", "ApplyWithOptions", "ApplyIndent", "ApplyIndentWithOptions"]
|
this.hasQualifiedName(packagePath(), fn)
this.hasQualifiedName(packagePath(), "Patch", fn)
)
}