JS: Autoformat everything

This commit is contained in:
Asger Feldthaus
2020-02-27 09:41:01 +00:00
parent 9c06c48dc7
commit fefcf1a7a6
130 changed files with 657 additions and 774 deletions

View File

@@ -14,4 +14,4 @@ class Configuration extends DataFlow::Configuration {
query predicate dataflow(DataFlow::Node pred, DataFlow::Node succ) {
any(Configuration c).hasFlow(pred, succ)
}
}

View File

@@ -2,8 +2,5 @@ import javascript
query string getAccessModifier(DataFlow::PropRef ref, Expr prop) {
prop = ref.getPropertyNameExpr() and
if ref.isPrivateField() then
result = "Private"
else
result = "Public"
}
if ref.isPrivateField() then result = "Private" else result = "Public"
}

View File

@@ -1,7 +1,5 @@
import javascript
query predicate test_ResolvedPromiseDefinition(
PromiseCreationCall resolved, DataFlow::Node res
) {
query predicate test_ResolvedPromiseDefinition(PromiseCreationCall resolved, DataFlow::Node res) {
res = resolved.getValue()
}

View File

@@ -31,4 +31,4 @@ query predicate flow(DataFlow::Node source, DataFlow::Node sink) {
query predicate exclusiveTaintFlow(DataFlow::Node source, DataFlow::Node sink) {
not any(Configuration c).hasFlow(source, sink) and
any(TaintConfig c).hasFlow(source, sink)
}
}

View File

@@ -8,6 +8,4 @@ query predicate test_PredicateTypeExpr(PredicateTypeExpr type, VarTypeAccess res
res0 = type.getParameterName()
}
query predicate test_hasAssertsKeyword(PredicateTypeExpr type) {
type.hasAssertsKeyword()
}
query predicate test_hasAssertsKeyword(PredicateTypeExpr type) { type.hasAssertsKeyword() }

View File

@@ -1,5 +1,7 @@
import javascript
query predicate test_ClientSendNode_getAck(SocketIOClient::SendNode sn, SocketIOClient::SendCallback res) {
query predicate test_ClientSendNode_getAck(
SocketIOClient::SendNode sn, SocketIOClient::SendCallback res
) {
res.getSendNode() = sn
}