@@ -364,10 +364,10 @@ func test6(passwordString: String) {
364364func test7( authKey: String , authKey2: Int , authKey3: Float , password: String , secret: String ) {
365365 log ( message: authKey) // $ hasCleartextLogging=365
366366 log ( message: String ( authKey2) ) // $ hasCleartextLogging=366
367- logging ( message: authKey) // $ hasCleartextLogging=367
368- logfile ( file: 0 , message: authKey) // $ hasCleartextLogging=368
367+ logging ( message: authKey) // $ MISSING: hasCleartextLogging=367
368+ logfile ( file: 0 , message: authKey) // $ MISSING: hasCleartextLogging=368
369369 logMessage ( NSString ( string: authKey) ) // $ hasCleartextLogging=369
370- logInfo ( authKey) // $ MISSING: hasCleartextLogging=370
370+ logInfo ( authKey) // $ hasCleartextLogging=370
371371 logError ( errorMsg: authKey) // $ hasCleartextLogging=371
372372 harmless ( authKey) // GOOD: not logging
373373 _ = logarithm ( authKey3) // GOOD: not logging
@@ -387,10 +387,10 @@ func test7(authKey: String, authKey2: Int, authKey3: Float, password: String, se
387387
388388 let logic = Logic ( )
389389 logic. addInt ( authKey2) // GOOD: not logging
390- logic. addString ( authKey) // $ SPURIOUS: hasCleartextLogging=390 ( not logging)
390+ logic. addString ( authKey) // GOOD: not logging
391391
392392 let rlogger = MyRemoteLogger ( )
393- rlogger. setPassword ( password: password) // $ SPURIOUS: hasCleartextLogging=393 ( not logging)
394- rlogger. login ( password: password) // $ SPURIOUS: hasCleartextLogging=394 ( not logging)
395- rlogger. logout ( secret: secret) // $ SPURIOUS: hasCleartextLogging=395 ( not logging)
393+ rlogger. setPassword ( password: password) // GOOD: not logging
394+ rlogger. login ( password: password) // GOOD: not logging
395+ rlogger. logout ( secret: secret) // GOOD: not logging
396396}
0 commit comments