mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update go/ql/lib/semmle/go/frameworks/Twirp.qll
Co-authored-by: Michael B. Gale <mbg@github.com>
This commit is contained in:
@@ -80,7 +80,7 @@ module Twirp {
|
||||
exists(ServiceInterfaceType i, PointerType p, TypeEntity te |
|
||||
p.implements(i) and
|
||||
this = p.getBaseType() and
|
||||
this.getName().regexpMatch("(?i)" + i.getName() + "(protobuf|json)" + "client") and
|
||||
this.getName().regexpMatch("(?i)" + i.getName() + "(protobuf|json)client") and
|
||||
te.getType() = this and
|
||||
te.getDeclaration().getLocation().getFile() instanceof ServicesGeneratedFile
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user