mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JS: Accept trivial test changes
This adds Alert annotations for alerts that seem intentional by the test but has not been annotated with 'NOT OK', or the comment was in the wrong place. In a few cases I included 'Source' expectations to make it easier to see what happened. Other 'Source' expectations will be added in bulk a later commit.
This commit is contained in:
@@ -2,7 +2,7 @@ function connectAndLog(id) {
|
||||
log.info(`Connecting to ${id}`)
|
||||
let connection = openConnection(id)
|
||||
if (!connection) {
|
||||
log.error('Could not connect to ${id}')
|
||||
log.error('Could not connect to ${id}') // $ Alert
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ function emitTemplate(name, date) {
|
||||
var globalVar = "global";
|
||||
|
||||
function foo() {
|
||||
log.error('globalVar = ${globalVar}');
|
||||
log.error('globalVar = ${globalVar}'); // $ Alert
|
||||
}
|
||||
log.error('globalVar = ${globalVar}');
|
||||
log.error('globalVar = ${globalVar}'); // $ Alert
|
||||
|
||||
function bar() {
|
||||
log.error('Something ${notInScope}');
|
||||
@@ -25,7 +25,7 @@ function bar() {
|
||||
function baz(x){
|
||||
log.error("${x}");
|
||||
log.error("${y}");
|
||||
log.error("${x} ");
|
||||
log.error("${x} "); // $ Alert
|
||||
log.error("${y} ");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user