|
26 | 26 | console.log(obj2); // NOT OK
|
27 | 27 |
|
28 | 28 | var obj3 = {};
|
29 |
| - console.log(obj3); |
30 |
| - obj3.x = password; // NOT OK |
| 29 | + console.log(obj3); // OK - but still flagged due to flow-insensitive field-analysis. [INCONSISTENCY] |
| 30 | + obj3.x = password; |
31 | 31 |
|
32 | 32 | var fixed_password = "123";
|
33 | 33 | console.log(fixed_password); // OK
|
|
90 | 90 | console.log("Password is: " + redact('password', password));
|
91 | 91 |
|
92 | 92 | if (environment.isTestEnv()) {
|
93 |
| - console.log("Password is: " + password); // OK, but still flagged |
| 93 | + console.log("Password is: " + password); // OK, but still flagged [INCONSISTENCY] |
94 | 94 | }
|
95 | 95 |
|
96 | 96 | if (environment.is(TEST)) {
|
97 | 97 | // NB: for security reasons, we only log passwords in test environments
|
98 |
| - console.log("Password is: " + password); // OK, but still flagged |
| 98 | + console.log("Password is: " + password); // OK, but still flagged [INCONSISTENCY] |
99 | 99 | }
|
100 | 100 |
|
101 | 101 |
|
|
107 | 107 | }
|
108 | 108 |
|
109 | 109 | if (environment.isTestEnv())
|
110 |
| - console.log("Password is: " + password); // OK, but still flagged |
| 110 | + console.log("Password is: " + password); // OK, but still flagged [INCONSISTENCY] |
111 | 111 |
|
112 | 112 | if (x.test(y)) {
|
113 | 113 | if (f()) {
|
|
116 | 116 | }
|
117 | 117 |
|
118 | 118 | if (!environment.isProduction()) {
|
119 |
| - console.log("Password is: " + password); // OK, but still flagged |
| 119 | + console.log("Password is: " + password); // OK, but still flagged [INCONSISTENCY] |
120 | 120 | }
|
121 | 121 |
|
122 | 122 | console.log(name + ", " + password.toString()); // NOT OK
|
|
0 commit comments