mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
JavaScript: Introduce new library predicate for computing whitespace around binary operators.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
| tst.js:2:9:2:16 | x + x>>1 | Whitespace around nested operators contradicts precedence. |
|
||||
| tst.js:42:9:42:20 | p in o&&o[p] | Whitespace around nested operators contradicts precedence. |
|
||||
| tst.js:49:1:49:12 | x + x >> 1 | Whitespace around nested operators contradicts precedence. |
|
||||
|
||||
@@ -44,3 +44,9 @@ function ok10(o, p) {
|
||||
|
||||
// OK
|
||||
x==y ** 2;
|
||||
|
||||
// NOT OK
|
||||
x + x >> 1
|
||||
|
||||
// OK
|
||||
x + x >> 1
|
||||
|
||||
Reference in New Issue
Block a user