Skip to content

Commit fa2c506

Browse files
committed
Remove getSourceType definitions
1 parent b6adff6 commit fa2c506

File tree

21 files changed

+0
-73
lines changed

21 files changed

+0
-73
lines changed

go/ql/lib/semmle/go/frameworks/AwsLambda.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ private class LambdaInput extends RemoteFlowSource::Range {
1414
not p instanceof ReceiverVariable
1515
)
1616
}
17-
18-
override string getSourceType() { result = "AWS Lambda Input" }
1917
}
2018

2119
private class HandlerFunction extends FuncDef {

go/ql/lib/semmle/go/frameworks/Beego.qll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ module Beego {
7171
}
7272

7373
predicate isSafeUrlSource() { methodName in ["URI", "URL"] }
74-
75-
override string getSourceType() { result = "Beego Input" }
7674
}
7775

7876
/** `BeegoInput` sources that are safe to use for redirection. */
@@ -102,8 +100,6 @@ module Beego {
102100
)
103101
)
104102
}
105-
106-
override string getSourceType() { result = "a Beego Controller" }
107103
}
108104

109105
/**
@@ -115,8 +111,6 @@ module Beego {
115111
frn.getField().hasQualifiedName(contextPackagePath(), "BeegoInput", "RequestBody")
116112
)
117113
}
118-
119-
override string getSourceType() { result = "Beego Input Request Body" }
120114
}
121115

122116
/**
@@ -128,8 +122,6 @@ module Beego {
128122
this = m.getACall().getResult()
129123
)
130124
}
131-
132-
override string getSourceType() { result = "a Beego cookie" }
133125
}
134126

135127
private class BeegoOutputInstance extends Http::ResponseWriter::Range {

go/ql/lib/semmle/go/frameworks/Chi.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ private module Chi {
1515
UserControlledFunction() {
1616
this.getTarget().hasQualifiedName(packagePath(), ["URLParam", "URLParamFromCtx"])
1717
}
18-
19-
override string getSourceType() { result = "URL parameter" }
2018
}
2119

2220
/**
@@ -28,7 +26,5 @@ private module Chi {
2826
UserControlledRequestMethod() {
2927
this.getTarget().hasQualifiedName(packagePath(), "Context", "URLParam")
3028
}
31-
32-
override string getSourceType() { result = "URL parameter" }
3329
}
3430
}

go/ql/lib/semmle/go/frameworks/Echo.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ private module Echo {
2424
this = call.getResult(0)
2525
)
2626
}
27-
28-
override string getSourceType() { result = "HTTP request context" }
2927
}
3028

3129
/**
@@ -52,8 +50,6 @@ private module Echo {
5250
this = FunctionOutput::parameter(0).getExitNode(call)
5351
)
5452
}
55-
56-
override string getSourceType() { result = "HTTP request data" }
5753
}
5854

5955
/**

go/ql/lib/semmle/go/frameworks/ElazarlGoproxy.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ module ElazarlGoproxy {
106106
call.getTarget().hasQualifiedName(packagePath(), "ProxyCtx", "Charset")
107107
)
108108
}
109-
110-
override string getSourceType() { result = "HTTP request data" }
111109
}
112110

113111
private class ProxyLogFunction extends StringOps::Formatting::Range, Method {

go/ql/lib/semmle/go/frameworks/Fasthttp.qll

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,6 @@ module Fasthttp {
271271
this = m.getACall().getResult(0)
272272
)
273273
}
274-
275-
override string getSourceType() { result = "a component of a URI" }
276274
}
277275
}
278276

@@ -298,8 +296,6 @@ module Fasthttp {
298296
this = m.getACall().getResult(0)
299297
)
300298
}
301-
302-
override string getSourceType() { result = "URL Parameters" }
303299
}
304300
}
305301

@@ -425,8 +421,6 @@ module Fasthttp {
425421
this = m.getACall().getArgument(0)
426422
)
427423
}
428-
429-
override string getSourceType() { result = "HTTP request" }
430424
}
431425

432426
/**
@@ -505,8 +499,6 @@ module Fasthttp {
505499
this = m.getACall().getResult(0)
506500
)
507501
}
508-
509-
override string getSourceType() { result = "HTTP header" }
510502
}
511503
}
512504

@@ -537,8 +529,6 @@ module Fasthttp {
537529
this = m.getACall().getResult(0)
538530
)
539531
}
540-
541-
override string getSourceType() { result = "HTTP request header" }
542532
}
543533
}
544534
}

go/ql/lib/semmle/go/frameworks/Gin.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ private module Gin {
3434
this = fld.getARead()
3535
)
3636
}
37-
38-
override string getSourceType() { result = "HTTP request context" }
3937
}
4038

4139
/**
@@ -55,8 +53,6 @@ private module Gin {
5553
this = FunctionOutput::parameter(0).getExitNode(call)
5654
)
5755
}
58-
59-
override string getSourceType() { result = "HTTP request data" }
6056
}
6157

6258
/**

go/ql/lib/semmle/go/frameworks/GoKit.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ module GoKit {
3737

3838
private class EndpointRequest extends RemoteFlowSource::Range {
3939
EndpointRequest() { this = DataFlow::parameterNode(getAnEndpointFunction().getParameter(1)) }
40-
41-
override string getSourceType() { result = "Go Kit endpoint request" }
4240
}
4341
}
4442
}

go/ql/lib/semmle/go/frameworks/GoMicro.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,5 @@ module GoMicro {
150150
this.getType().(PointerType).getBaseType() instanceof ProtocMessageType
151151
)
152152
}
153-
154-
override string getSourceType() { result = "service handler request" }
155153
}
156154
}

go/ql/lib/semmle/go/frameworks/GoRestfulHttp.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ private module GoRestfulHttp {
2929
*/
3030
private class GoRestfulSource extends RemoteFlowSource::Range {
3131
GoRestfulSource() { this = any(GoRestfulSourceMethod g).getACall() }
32-
33-
override string getSourceType() { result = "HTTP request" }
3432
}
3533

3634
/**
@@ -44,7 +42,5 @@ private module GoRestfulHttp {
4442
this = FunctionOutput::parameter(0).getExitNode(call)
4543
)
4644
}
47-
48-
override string getSourceType() { result = "HTTP request body" }
4945
}
5046
}

0 commit comments

Comments
 (0)