Files
codeql/javascript/ql/test/query-tests/React/UnusedOrUndefinedStateProperty/UnusedOrUndefinedStateProperty.expected
2025-02-28 13:27:38 +01:00

30 lines
2.8 KiB
Plaintext

#select
| issue7506.js:12:1:12:34 | class C ... e\\n }\\n} | Component state property 'p1' is $@, but it is never read. | issue7506.js:15:5:15:10 | p1: '' | written |
| undefined.js:1:1:1:34 | class C ... }\\n} | Component state property 'notWritten' is $@, but it is never written. | undefined.js:8:9:8:29 | this.st ... Written | read |
| undefined.js:1:1:1:34 | class C ... }\\n} | Component state property 'notWrittenButReadInChain' is $@, but it is never written. | undefined.js:9:9:9:43 | this.st ... InChain | read |
| undefined.js:32:1:32:34 | class C ... }\\n} | Component state property 'notWrittenThrougExternalPropertyAccess' is $@, but it is never written. | undefined.js:35:9:35:57 | this.st ... yAccess | read |
| undefined.js:61:19:61:19 | {\\n r ... ;\\n }\\n} | Component state property 'notWrittenInKnownInitializerObject' is $@, but it is never written. | undefined.js:64:9:64:53 | this.st ... rObject | read |
| unused.js:1:1:1:34 | class C ... }\\n} | Component state property 'notRead' is $@, but it is never read. | unused.js:6:9:6:26 | this.state.notRead | written |
| unused.js:27:1:27:34 | class C ... }\\n} | Component state property 'notReadThrougExternaPropertyAccess' is $@, but it is never read. | unused.js:30:9:30:53 | this.st ... yAccess | written |
testFailures
| undefined.js:8:32:8:41 | // $ Alert | Missing result: Alert |
| undefined.js:9:46:9:55 | // $ Alert | Missing result: Alert |
| undefined.js:27:43:27:84 | // $ Al ... P above | Missing result: Alert |
| undefined.js:35:60:35:69 | // $ Alert | Missing result: Alert |
| undefined.js:48:58:48:99 | // $ Al ... P above | Missing result: Alert |
| undefined.js:56:58:56:99 | // $ Al ... P above | Missing result: Alert |
| undefined.js:61:19:61:19 | Component state property 'notWrittenInKnownInitializerObject' is $@, but it is never written. | Unexpected result: Alert |
| undefined.js:64:56:64:65 | // $ Alert | Missing result: Alert |
| undefined.js:78:58:78:99 | // $ Al ... P above | Missing result: Alert |
| undefined.js:90:46:90:87 | // $ Al ... P above | Missing result: Alert |
| undefined.js:100:40:100:81 | // $ Al ... P above | Missing result: Alert |
| undefined.js:124:42:124:83 | // $ Al ... P above | Missing result: Alert |
| undefined.js:135:67:135:108 | // $ Al ... P above | Missing result: Alert |
| undefined.js:145:56:145:97 | // $ Al ... P above | Missing result: Alert |
| undefined.js:152:45:152:86 | // $ Al ... P above | Missing result: Alert |
| unused.js:6:34:6:43 | // $ Alert | Missing result: Alert |
| unused.js:21:42:21:51 | // $ Alert | Missing result: Alert |
| unused.js:30:61:30:70 | // $ Alert | Missing result: Alert |
| unused.js:40:69:40:110 | // $ Al ... P above | Missing result: Alert |
| unused.js:57:47:57:88 | // $ Al ... P above | Missing result: Alert |