mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
abstract class Audio3D {
|
||||
setAudioStream() {
|
||||
setAudioProperties(); // NOT OK
|
||||
setAudioProperties(); // $ Alert
|
||||
}
|
||||
|
||||
abstract setAudioProperties();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Audio3D {
|
||||
setAudioStream() {
|
||||
externs_setAudioProperties(); // OK
|
||||
externs_setAudioProperties();
|
||||
}
|
||||
|
||||
externs_setAudioProperties(){
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*global setAudioProperties*/
|
||||
class Audio3D {
|
||||
setAudioStream() {
|
||||
setAudioProperties(); // OK
|
||||
setAudioProperties();
|
||||
}
|
||||
|
||||
setAudioProperties(){
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
class X {
|
||||
m() {
|
||||
m("default"); // OK
|
||||
m("default");
|
||||
}
|
||||
|
||||
resty(...x) {
|
||||
m("default"); // NOT OK
|
||||
m("default"); // $ Alert
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Audio3D {
|
||||
setAudioStream() {
|
||||
setAudioProperties(); // NOT OK
|
||||
setAudioProperties(); // $ Alert
|
||||
}
|
||||
|
||||
setAudioProperties(){
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Audio3D {
|
||||
static setAudioStream() {
|
||||
setAudioProperties(); // NOT OK
|
||||
setAudioProperties(); // $ Alert
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,39 +1,39 @@
|
||||
class GlobalClass {
|
||||
globalFunction(){
|
||||
globalFunction(); // NOT OK
|
||||
globalFunction() {
|
||||
globalFunction(); // $ Alert
|
||||
}
|
||||
topNamespaceFunction(){
|
||||
topNamespaceFunction(); // NOT OK
|
||||
topNamespaceFunction() {
|
||||
topNamespaceFunction(); // $ Alert
|
||||
}
|
||||
childNamespaceFunction(){
|
||||
childNamespaceFunction(); // NOT OK
|
||||
childNamespaceFunction() {
|
||||
childNamespaceFunction(); // $ Alert
|
||||
}
|
||||
}
|
||||
|
||||
namespace Top {
|
||||
class TopClass {
|
||||
globalFunction(){
|
||||
globalFunction(); // NOT OK
|
||||
globalFunction() {
|
||||
globalFunction(); // $ Alert
|
||||
}
|
||||
topNamespaceFunction(){
|
||||
topNamespaceFunction(); // OK
|
||||
topNamespaceFunction() {
|
||||
topNamespaceFunction();
|
||||
}
|
||||
childNamespaceFunction(){
|
||||
childNamespaceFunction(); // NOT OK, but not flagged since the namespace resolution is ignored
|
||||
childNamespaceFunction() {
|
||||
childNamespaceFunction(); // $ MISSING: Alert - not flagged since the namespace resolution is ignored
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace Top.Child {
|
||||
class ChildClass {
|
||||
globalFunction(){
|
||||
globalFunction(); // NOT OK
|
||||
globalFunction() {
|
||||
globalFunction(); // $ Alert
|
||||
}
|
||||
topNamespaceFunction(){
|
||||
topNamespaceFunction(); // OK
|
||||
topNamespaceFunction() {
|
||||
topNamespaceFunction();
|
||||
}
|
||||
childNamespaceFunction(){
|
||||
childNamespaceFunction(); // OK
|
||||
childNamespaceFunction() {
|
||||
childNamespaceFunction();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ function setAudioProperties(){}
|
||||
|
||||
class Audio3D {
|
||||
setAudioStream() {
|
||||
setAudioProperties(); // OK
|
||||
setAudioProperties();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*global NOT_setAudioProperties*/
|
||||
class Audio3D {
|
||||
setAudioStream() {
|
||||
setAudioProperties(); // NOT OK
|
||||
setAudioProperties(); // $ Alert
|
||||
}
|
||||
|
||||
setAudioProperties(){
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Audio3D {
|
||||
setAudioStream() {
|
||||
this.setAudioProperties(); // OK
|
||||
this.setAudioProperties();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Audio3D {
|
||||
static setAudioStream() {
|
||||
this.setAudioProperties(); // OK
|
||||
this.setAudioProperties();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user