mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
| tst.js:4:11:4:13 | [1, , 2] | Avoid omitted array elements. |
|
||||
| tst.js:6:14:6:16 | [1, 2, ,] | Avoid omitted array elements. |
|
||||
| tst.js:7:9:7:10 | [,1] | Avoid omitted array elements. |
|
||||
@@ -0,0 +1 @@
|
||||
LanguageFeatures/EmptyArrayInit.ql
|
||||
@@ -0,0 +1,7 @@
|
||||
var a = [], // OK
|
||||
b = [1], // OK
|
||||
c = [1, 2], // OK
|
||||
d = [1, , 2], // NOT OK
|
||||
e = [1,], // OK
|
||||
f = [1, 2, ,], // NOT OK
|
||||
g = [,1]; // NOT OK
|
||||
Reference in New Issue
Block a user