Skip to content

Commit 8515a70

Browse files
committed
JS: fix all ql/no-upper-case-variables
1 parent 02127b4 commit 8515a70

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Logging.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private module Winston {
123123
/**
124124
* Provides classes for working with [log4js](https://github.com/log4js-node/log4js-node).
125125
*/
126-
private module log4js {
126+
private module Log4js {
127127
/**
128128
* A call to the log4js logging mechanism.
129129
*/

javascript/ql/lib/semmle/javascript/frameworks/UriLibraries.qll

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ abstract deprecated class UriLibraryStep extends DataFlow::ValueNode {
1414
predicate step(DataFlow::Node pred, DataFlow::Node succ) { none() }
1515
}
1616

17+
/** DEPRECATED: Alias for `Urijs` */
18+
deprecated module urijs = Urijs;
19+
1720
/**
1821
* Provides classes for working with [urijs](http://medialize.github.io/URI.js/) code.
1922
*/
20-
module urijs {
23+
module Urijs {
2124
/**
2225
* Gets a data flow source node for the urijs library.
2326
*/
@@ -80,10 +83,13 @@ module urijs {
8083
}
8184
}
8285

86+
/** DEPRECATED: Alias for `Uridashjs` */
87+
deprecated module uridashjs = Uridashjs;
88+
8389
/**
8490
* Provides classes for working with [uri-js](https://github.com/garycourt/uri-js) code.
8591
*/
86-
module uridashjs {
92+
module Uridashjs {
8793
/**
8894
* Gets a data flow source node for member `name` of the uridashjs library.
8995
*/
@@ -105,10 +111,13 @@ module uridashjs {
105111
}
106112
}
107113

114+
/** DEPRECATED: Alias for `Punycode` */
115+
deprecated module punycode = Punycode;
116+
108117
/**
109118
* Provides classes for working with [punycode](https://github.com/bestiejs/punycode.js) code.
110119
*/
111-
module punycode {
120+
module Punycode {
112121
/**
113122
* Gets a data flow source node for member `name` of the punycode library.
114123
*/
@@ -130,10 +139,13 @@ module punycode {
130139
}
131140
}
132141

142+
/** DEPRECATED: Alias for `UrlParse` */
143+
deprecated module urlParse = UrlParse;
144+
133145
/**
134146
* Provides classes for working with [url-parse](https://github.com/unshiftio/url-parse) code.
135147
*/
136-
module urlParse {
148+
module UrlParse {
137149
/**
138150
* Gets a data flow source node for the url-parse library.
139151
*/
@@ -167,10 +179,13 @@ module urlParse {
167179
}
168180
}
169181

182+
/** DEPRECATED: Alias for `Querystringify` */
183+
deprecated module querystringify = Querystringify;
184+
170185
/**
171186
* Provides classes for working with [querystringify](https://github.com/unshiftio/querystringify) code.
172187
*/
173-
module querystringify {
188+
module Querystringify {
174189
/**
175190
* Gets a data flow source node for member `name` of the querystringify library.
176191
*/
@@ -197,10 +212,13 @@ module querystringify {
197212
}
198213
}
199214

215+
/** DEPRECATED: Alias for `Querydashstring` */
216+
deprecated module querydashstring = Querydashstring;
217+
200218
/**
201219
* Provides classes for working with [query-string](https://github.com/sindresorhus/query-string) code.
202220
*/
203-
module querydashstring {
221+
module Querydashstring {
204222
/**
205223
* Gets a data flow source node for member `name` of the query-string library.
206224
*/
@@ -222,10 +240,13 @@ module querydashstring {
222240
}
223241
}
224242

243+
/** DEPRECATED: Alias for `Url` */
244+
deprecated module url = Url;
245+
225246
/**
226247
* Provides classes for working with [url](https://nodejs.org/api/url.html) code.
227248
*/
228-
module url {
249+
module Url {
229250
/**
230251
* Gets a data flow source node for member `name` of the url library.
231252
*/
@@ -245,10 +266,13 @@ module url {
245266
}
246267
}
247268

269+
/** DEPRECATED: Alias for `Querystring` */
270+
deprecated module querystring = Querystring;
271+
248272
/**
249273
* Provides classes for working with [querystring](https://nodejs.org/api/querystring.html) code.
250274
*/
251-
module querystring {
275+
module Querystring {
252276
/**
253277
* Gets a data flow source node for member `name` of the querystring library.
254278
*/
@@ -408,7 +432,7 @@ private module ClosureLibraryUri {
408432
/**
409433
* Provides classes for working with [path](https://nodejs.org/api/path.html) code.
410434
*/
411-
module path {
435+
module Path {
412436
/**
413437
* A taint step in the path module.
414438
*/

0 commit comments

Comments
 (0)