Skip to content

Commit 2a7b448

Browse files
committed
JS: More auto format
1 parent d8c9dba commit 2a7b448

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

javascript/ql/test/library-tests/frameworks/Angular2/test.ql

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ private import semmle.javascript.security.dataflow.Xss
33

44
query Angular2::PipeRefExpr pipeRef() { any() }
55

6-
query CallExpr pipeCall() {
7-
result.getCallee() instanceof Angular2::PipeRefExpr
8-
}
6+
query CallExpr pipeCall() { result.getCallee() instanceof Angular2::PipeRefExpr }
97

108
query CallExpr pipeCallArg(int i, Expr arg) {
119
result.getCallee() instanceof Angular2::PipeRefExpr and
@@ -14,22 +12,16 @@ query CallExpr pipeCallArg(int i, Expr arg) {
1412

1513
query Angular2::PipeClass pipeClass() { any() }
1614

17-
query DataFlow::Node pipeClassRef(Angular2::PipeClass cls) {
18-
result = cls.getAPipeRef()
19-
}
15+
query DataFlow::Node pipeClassRef(Angular2::PipeClass cls) { result = cls.getAPipeRef() }
2016

2117
class TaintConfig extends TaintTracking::Configuration {
22-
TaintConfig() {
23-
this = "TaintConfig"
24-
}
18+
TaintConfig() { this = "TaintConfig" }
2519

2620
override predicate isSource(DataFlow::Node source) {
2721
source.(DataFlow::CallNode).getCalleeName() = "source"
2822
}
2923

30-
override predicate isSink(DataFlow::Node sink) {
31-
sink instanceof DomBasedXss::Sink
32-
}
24+
override predicate isSink(DataFlow::Node sink) { sink instanceof DomBasedXss::Sink }
3325
}
3426

3527
query predicate taintFlow(DataFlow::Node source, DataFlow::Node sink) {

javascript/upgrades/c8859f3725d4b070a877f8792214582d517c8a9b/toplevel_parent_xml_node.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ class XmlNode extends @xmllocatable {
88

99
// Based on previous implementation on HTMLNode.getCodeInAttribute and getInlineScript
1010
from
11-
TopLevel top, XmlNode xml,
12-
@file f,
13-
@location l1, int sl1, int sc1, int el1, int ec1,
11+
TopLevel top, XmlNode xml, @file f, @location l1, int sl1, int sc1, int el1, int ec1,
1412
@location l2, int sl2, int sc2, int el2, int ec2
1513
where
1614
xmllocations(xml, l1) and

0 commit comments

Comments
 (0)