mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// NOT OK
|
||||
while(c){
|
||||
while(c){ // $ Alert
|
||||
switch(c){
|
||||
case "/":
|
||||
break;
|
||||
@@ -8,8 +7,7 @@ while(c){
|
||||
break;
|
||||
}
|
||||
|
||||
// NOT OK
|
||||
function f() {
|
||||
function f() { // $ Alert
|
||||
for (; k < numprecincts;) {
|
||||
var packet = createPacket(resolution, k, l);
|
||||
k++;
|
||||
@@ -17,14 +15,14 @@ function f() {
|
||||
}
|
||||
}
|
||||
|
||||
// OK
|
||||
|
||||
var oHasProps = false;
|
||||
for (var p in o) {
|
||||
oHasProps = true;
|
||||
break;
|
||||
}
|
||||
|
||||
// OK
|
||||
|
||||
while(c){
|
||||
if (c === '"')
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user