Merge pull request #207 from dave-bartolomeo/dave/JSNewlines

Approved by esben-semmle
This commit is contained in:
semmle-qlci
2018-09-20 14:49:54 +01:00
committed by GitHub
6 changed files with 47 additions and 36 deletions

View File

@@ -0,0 +1,2 @@
# This file intentionally contains a mix of different line endings
tst1.js -text

View File

@@ -0,0 +1,3 @@
# These files intentionally contain CRLF line endings.
tstWindows.html eol=crlf
tstWindows.js eol=crlf

View File

@@ -1,7 +1,7 @@
<html>
<head><title>Title</title></title>
<body>
<div id="duplicate-id"/>
<div id="duplicate-id"/> <!-- lgtm -->
</body>
</html>
<html>
<head><title>Title</title></title>
<body>
<div id="duplicate-id"/>
<div id="duplicate-id"/> <!-- lgtm -->
</body>
</html>

View File

@@ -1,28 +1,28 @@
debugger; // lgtm
// lgtm[js/debugger-statement]
// lgtm[js/debugger-statement, js/invocation-of-non-function]
// lgtm[@tag:nullness]
// lgtm[@tag:nullness,js/debugger-statement]
// lgtm[@expires:2017-06-11]
// lgtm[js/invocation-of-non-function] because I know better than lgtm
// lgtm: blah blah
// lgtm blah blah #falsepositive
//lgtm [js/invocation-of-non-function]
/* lgtm */
// lgtm[]
// lgtmfoo
//lgtm
// lgtm
// lgtm [js/debugger-statement]
// foolgtm[js/debugger-statement]
// foolgtm
// foo; lgtm
// foo; lgtm[js/debugger-statement]
// foo lgtm
// foo lgtm[js/debugger-statement]
// foo lgtm bar
// foo lgtm[js/debugger-statement] bar
// LGTM!
// LGTM[js/debugger-statement]
// lgtm[js/debugger-statement] and lgtm[js/invocation-of-non-function]
// lgtm[js/debugger-statement]; lgtm
debugger; // lgtm
// lgtm[js/debugger-statement]
// lgtm[js/debugger-statement, js/invocation-of-non-function]
// lgtm[@tag:nullness]
// lgtm[@tag:nullness,js/debugger-statement]
// lgtm[@expires:2017-06-11]
// lgtm[js/invocation-of-non-function] because I know better than lgtm
// lgtm: blah blah
// lgtm blah blah #falsepositive
//lgtm [js/invocation-of-non-function]
/* lgtm */
// lgtm[]
// lgtmfoo
//lgtm
// lgtm
// lgtm [js/debugger-statement]
// foolgtm[js/debugger-statement]
// foolgtm
// foo; lgtm
// foo; lgtm[js/debugger-statement]
// foo lgtm
// foo lgtm[js/debugger-statement]
// foo lgtm bar
// foo lgtm[js/debugger-statement] bar
// LGTM!
// LGTM[js/debugger-statement]
// lgtm[js/debugger-statement] and lgtm[js/invocation-of-non-function]
// lgtm[js/debugger-statement]; lgtm