Skip to content

Commit 124567c

Browse files
committed
Convert Mux::RequestVars to MaD
1 parent b3744ef commit 124567c

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extensions:
2+
- addsTo:
3+
pack: codeql/go-all
4+
extensible: sourceModel
5+
data:
6+
- ["github.com/gorilla/mux", "", True, "Vars", "", "", "ReturnValue", "remote", "manual"] # TODO: should be .MapValue (and .MapKey?)

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
import go
66

77
/**
8+
* DEPRECATED
9+
*
810
* Provides classes for working with concepts in the Mux HTTP middleware library.
911
*/
10-
module Mux {
11-
/** An access to a Mux middleware variable. */
12-
class RequestVars extends DataFlow::RemoteFlowSource::Range, DataFlow::CallNode {
12+
deprecated module Mux {
13+
/**
14+
* DEPRECATED: Use `RemoteFlowSource::Range` instead.
15+
*
16+
* An access to a Mux middleware variable.
17+
*/
18+
deprecated class RequestVars extends DataFlow::RemoteFlowSource::Range, DataFlow::CallNode {
1319
RequestVars() {
1420
this.getTarget().hasQualifiedName(package("github.com/gorilla/mux", ""), "Vars")
1521
}

0 commit comments

Comments
 (0)