@@ -222,23 +222,23 @@ func test4(harmless: String, password: String) {
222222 print ( harmless, to: & myString1)
223223 print ( myString1) // safe
224224
225- print ( password, to: & myString2) // $ SPURIOUS: hasCleartextLogging=225
226- print ( myString2) // $ MISSING: hasCleartextLogging=225
225+ print ( password, to: & myString2)
226+ print ( myString2) // $ hasCleartextLogging=225
227227
228- print ( " log: " + password, to: & myString3) // $ SPURIOUS: hasCleartextLogging=228
229- print ( myString3) // $ MISSING: hasCleartextLogging=228
228+ print ( " log: " + password, to: & myString3)
229+ print ( myString3) // $ hasCleartextLogging=228
230230
231231 debugPrint ( harmless, to: & myString4)
232232 debugPrint ( myString4) // safe
233233
234- debugPrint ( password, to: & myString5) // $ SPURIOUS: hasCleartextLogging=234
235- debugPrint ( myString5) // $ MISSING: hasCleartextLogging=234
234+ debugPrint ( password, to: & myString5)
235+ debugPrint ( myString5) // $ hasCleartextLogging=234
236236
237237 dump ( harmless, to: & myString6)
238238 dump ( myString6) // safe
239239
240- dump ( password, to: & myString7) // $ SPURIOUS: hasCleartextLogging=240
241- dump ( myString7) // $ MISSING: hasCleartextLogging=240
240+ dump ( password, to: & myString7)
241+ dump ( myString7) // $ hasCleartextLogging=240
242242
243243 myString8. write ( harmless)
244244 print ( myString8)
@@ -257,9 +257,9 @@ func test4(harmless: String, password: String) {
257257 password. write ( to: & myString12)
258258 print ( myString12) // $ hasCleartextLogging=257
259259
260- print ( password, to: & myString13) // $ SPURIOUS: hasCleartextLogging=260
261- debugPrint ( password, to: & myString13) // $ SPURIOUS: hasCleartextLogging=261
262- dump ( password, to: & myString13) // $ SPURIOUS: hasCleartextLogging=262
260+ print ( password, to: & myString13) // $ safe - only printed to another string
261+ debugPrint ( password, to: & myString13) // $ safe - only printed to another string
262+ dump ( password, to: & myString13) // $ safe - only printed to another string
263263 myString13. write ( password) // safe - only printed to another string
264264 password. write ( to: & myString13) // safe - only printed to another string
265265}
0 commit comments