Skip to content

Commit fa43207

Browse files
committed
Swift: Autoformat.
1 parent 8245e6c commit fa43207

7 files changed

+14
-7
lines changed

swift/ql/lib/codeql/swift/security/CommandInjectionExtensions.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ private class CommandInjectionSinks extends SinkModelCsv {
6363
private class CommandInjectionDefaultBarrier extends CommandInjectionBarrier {
6464
CommandInjectionDefaultBarrier() {
6565
// any numeric type
66-
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = ["Numeric", "SignedInteger", "UnsignedInteger"]
66+
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() =
67+
["Numeric", "SignedInteger", "UnsignedInteger"]
6768
}
6869
}

swift/ql/lib/codeql/swift/security/PredicateInjectionExtensions.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ private class PredicateInjectionSinkCsv extends SinkModelCsv {
4646
private class PredicateInjectionDefaultBarrier extends PredicateInjectionBarrier {
4747
PredicateInjectionDefaultBarrier() {
4848
// any numeric type
49-
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = ["Numeric", "SignedInteger", "UnsignedInteger"]
49+
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() =
50+
["Numeric", "SignedInteger", "UnsignedInteger"]
5051
}
5152
}

swift/ql/lib/codeql/swift/security/SqlInjectionExtensions.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ private class DefaultSqlInjectionSink extends SqlInjectionSink {
190190
private class SqlInjectionDefaultBarrier extends SqlInjectionBarrier {
191191
SqlInjectionDefaultBarrier() {
192192
// any numeric type
193-
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = ["Numeric", "SignedInteger", "UnsignedInteger"]
193+
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() =
194+
["Numeric", "SignedInteger", "UnsignedInteger"]
194195
}
195196
}

swift/ql/lib/codeql/swift/security/UncontrolledFormatStringExtensions.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class HeuristicUncontrolledFormatStringSink extends UncontrolledFormatStringSink
9494
private class UncontrolledFormatStringDefaultBarrier extends UncontrolledFormatStringBarrier {
9595
UncontrolledFormatStringDefaultBarrier() {
9696
// any numeric type
97-
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = ["Numeric", "SignedInteger", "UnsignedInteger"]
97+
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() =
98+
["Numeric", "SignedInteger", "UnsignedInteger"]
9899
}
99100
}

swift/ql/lib/codeql/swift/security/UnsafeJsEvalExtensions.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ private class DefaultUnsafeJsEvalSink extends UnsafeJsEvalSink {
127127
private class UnsafeJsEvalDefaultBarrier extends UnsafeJsEvalBarrier {
128128
UnsafeJsEvalDefaultBarrier() {
129129
// any numeric type
130-
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = ["Numeric", "SignedInteger", "UnsignedInteger"]
130+
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() =
131+
["Numeric", "SignedInteger", "UnsignedInteger"]
131132
}
132133
}

swift/ql/lib/codeql/swift/security/UnsafeUnpackExtensions.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ private class UnsafeUnpackAdditionalDataFlowStep extends UnsafeUnpackAdditionalF
7373
private class UnsafeUnpackDefaultBarrier extends UnsafeUnpackBarrier {
7474
UnsafeUnpackDefaultBarrier() {
7575
// any numeric type
76-
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = ["Numeric", "SignedInteger", "UnsignedInteger"]
76+
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() =
77+
["Numeric", "SignedInteger", "UnsignedInteger"]
7778
}
7879
}

swift/ql/lib/codeql/swift/security/regex/RegexInjectionExtensions.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ private class RegexInjectionSinks extends SinkModelCsv {
6464
private class RegexInjectionDefaultBarrier extends RegexInjectionBarrier {
6565
RegexInjectionDefaultBarrier() {
6666
// any numeric type
67-
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = ["Numeric", "SignedInteger", "UnsignedInteger"]
67+
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() =
68+
["Numeric", "SignedInteger", "UnsignedInteger"]
6869
}
6970
}

0 commit comments

Comments
 (0)