mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Update go/ql/lib/semmle/go/frameworks/GoMicro.qll
Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
This commit is contained in:
@@ -86,12 +86,9 @@ module GoMicro {
|
||||
*/
|
||||
class ClientServiceType extends NamedType {
|
||||
ClientServiceType() {
|
||||
exists(ServiceInterfaceType i, TypeEntity te |
|
||||
this.implements(i) and
|
||||
this.getName().regexpMatch("(?i).*Service") and
|
||||
te.getType() = this and
|
||||
te.getDeclaration().getLocation().getFile() instanceof ProtocGeneratedFile
|
||||
)
|
||||
this.implements(any(ServiceInterfaceType i)) and
|
||||
this.getName().regexpMatch("(?i).*Service") and
|
||||
this.hasLocationInfo(any(ProtocGeneratedFile f).getAbsolutePath(), _, _, _, _)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user