Skip to content

Commit 4fbea4e

Browse files
committed
Swift: Autoformat.
1 parent f962eac commit 4fbea4e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ private class WeakPasswordHashingMetatypeSink extends WeakPasswordHashingSink {
125125
c.getAnArgument().getExpr() = this.asExpr() and
126126
algorithm = ["SHA256", "SHA384", "SHA512"] and
127127
c.getQualifier().getType().getFullName() = algorithm + ["", ".Type"] and
128-
c.getStaticTarget().getName() = ["hash(data:)", "hash(bufferPointer:)", "update(data:)", "update(bufferPointer:)"]
128+
c.getStaticTarget().getName() =
129+
["hash(data:)", "hash(bufferPointer:)", "update(data:)", "update(bufferPointer:)"]
129130
)
130131
}
131132

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ private class WeakSenitiveDataHashingMetatypeSink extends WeakSensitiveDataHashi
9090
c.getAnArgument().getExpr() = this.asExpr() and
9191
algorithm = ["MD5", "SHA1"] and
9292
c.getQualifier().getType().getFullName() = "Insecure." + algorithm + ["", ".Type"] and
93-
c.getStaticTarget().getName() = ["hash(data:)", "hash(bufferPointer:)", "update(data:)", "update(bufferPointer:)"]
93+
c.getStaticTarget().getName() =
94+
["hash(data:)", "hash(bufferPointer:)", "update(data:)", "update(bufferPointer:)"]
9495
)
9596
}
9697

0 commit comments

Comments
 (0)