Skip to content

Commit 2a1095a

Browse files
committed
autoformat, and apply naming suggestion
1 parent 8736535 commit 2a1095a

File tree

1 file changed

+6
-6
lines changed
  • javascript/ql/src/semmle/javascript/frameworks

1 file changed

+6
-6
lines changed

javascript/ql/src/semmle/javascript/frameworks/jQuery.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ private class OrdinaryJQueryObject extends JQueryObjectInternal {
3737
OrdinaryJQueryObject() {
3838
exists(JQuery::MethodCall jq |
3939
this.flow().getALocalSource() = jq and
40-
returnsAJqueryObject(jq, jq.getMethodName())
40+
returnsAJQueryObject(jq, jq.getMethodName())
4141
)
4242
}
4343
}
4444

4545
/**
4646
* Holds if the jQuery method call `call`, with name `methodName`, returns a JQuery object.
47-
*
48-
* The `call` parameter has type `DataFlow::CallNode` instead of `JQuery::MethodCall` to avoid non-monotonic recursion.
49-
* The not is placed inside the predicate to avoid non-monotonic recursion.
47+
*
48+
* The `call` parameter has type `DataFlow::CallNode` instead of `JQuery::MethodCall` to avoid non-monotonic recursion.
49+
* The not is placed inside the predicate to avoid non-monotonic recursion.
5050
*/
5151
bindingset[methodName, call]
52-
private predicate returnsAJqueryObject(DataFlow::CallNode call, string methodName) {
52+
private predicate returnsAJQueryObject(DataFlow::CallNode call, string methodName) {
5353
not (
5454
methodName = "val" // `jQuery.val()`
5555
or
@@ -70,7 +70,7 @@ private predicate returnsAJqueryObject(DataFlow::CallNode call, string methodNam
7070
or
7171
methodName = "trim" // $.trim()
7272
or
73-
// `$.ajax`, and related methods.
73+
// `$.ajax`, and related methods.
7474
// note: there are 2 different `get` methods, and none of them return a jQuery object.
7575
methodName = ["ajax", "get", "getJSON", "getScript", "post", "load"]
7676
)

0 commit comments

Comments
 (0)