@@ -364,10 +364,10 @@ func test6(passwordString: String) {
364
364
func test7( authKey: String , authKey2: Int , authKey3: Float , password: String , secret: String ) {
365
365
log ( message: authKey) // $ hasCleartextLogging=365
366
366
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
369
369
logMessage ( NSString ( string: authKey) ) // $ hasCleartextLogging=369
370
- logInfo ( authKey) // $ MISSING: hasCleartextLogging=370
370
+ logInfo ( authKey) // $ hasCleartextLogging=370
371
371
logError ( errorMsg: authKey) // $ hasCleartextLogging=371
372
372
harmless ( authKey) // GOOD: not logging
373
373
_ = logarithm ( authKey3) // GOOD: not logging
@@ -387,10 +387,10 @@ func test7(authKey: String, authKey2: Int, authKey3: Float, password: String, se
387
387
388
388
let logic = Logic ( )
389
389
logic. addInt ( authKey2) // GOOD: not logging
390
- logic. addString ( authKey) // $ SPURIOUS: hasCleartextLogging=390 ( not logging)
390
+ logic. addString ( authKey) // GOOD: not logging
391
391
392
392
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
396
396
}
0 commit comments