mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
JS: Autoformat everything
This commit is contained in:
@@ -14,4 +14,4 @@ class Configuration extends DataFlow::Configuration {
|
||||
|
||||
query predicate dataflow(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
any(Configuration c).hasFlow(pred, succ)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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() }
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user