QL code and tests for C#/C++/JavaScript.

This commit is contained in:
Pavel Avgustinov
2018-08-02 17:53:23 +01:00
commit b55526aa58
10684 changed files with 581163 additions and 0 deletions

View File

@@ -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. |

View File

@@ -0,0 +1 @@
LanguageFeatures/EmptyArrayInit.ql

View File

@@ -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