mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
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.
33 lines
755 B
JavaScript
33 lines
755 B
JavaScript
var s;
|
|
s = "this text" + // $ Alert
|
|
"is missing a space";
|
|
s = "the class java.util.ArrayList" + // $ Alert
|
|
"without a space";
|
|
s = "This isn't" + // $ Alert
|
|
"right.";
|
|
s = "There's 1" + // $ Alert
|
|
"thing wrong";
|
|
s = "There's A/B" + // $ Alert
|
|
"and no space";
|
|
s = "Wait for it...." + // $ Alert
|
|
"No space!";
|
|
s = "Is there a space?" + // $ Alert
|
|
"No!";
|
|
|
|
("missing " + "a space") + "here"; // $ Alert
|
|
|
|
// syntactic variants:
|
|
s = "missing a space" + // $ Alert
|
|
"here";
|
|
s = 'missing a space' + // $ Alert
|
|
'here';
|
|
s = `missing a space` + // $ Alert
|
|
"here";
|
|
s = "missing a space" + // $ Alert
|
|
`here`;
|
|
s = `missing a space` + // $ Alert
|
|
`here`;
|
|
s = (("missing space") + "here") // $ Alert
|
|
|
|
s = (("h. 0" + "h")) + "word" // $ Alert
|