mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
JavaScript: Normalize line endings of .js and .html files
Added .gitattributes files for the two directories where we intentionally have line endings other than LF
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
[*.{ql,qll,qlref,dbscheme,qhelp}]
|
[*.{ql,qll,qlref,dbscheme,qhelp,js,html}]
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
|
|||||||
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -15,3 +15,5 @@
|
|||||||
*.qlref eol=lf
|
*.qlref eol=lf
|
||||||
*.dbscheme eol=lf
|
*.dbscheme eol=lf
|
||||||
*.qhelp eol=lf
|
*.qhelp eol=lf
|
||||||
|
*.html eol=lf
|
||||||
|
*.js eol=lf
|
||||||
|
|||||||
2
javascript/ql/test/library-tests/Lines/.gitattributes
vendored
Normal file
2
javascript/ql/test/library-tests/Lines/.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# This file intentionally contains a mix of different line endings
|
||||||
|
tst1.js -text
|
||||||
3
javascript/ql/test/query-tests/AlertSuppression/.gitattributes
vendored
Normal file
3
javascript/ql/test/query-tests/AlertSuppression/.gitattributes
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# These files intentionally contain CRLF line endings.
|
||||||
|
tstWindows.html eol=crlf
|
||||||
|
tstWindows.js eol=crlf
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head><title>Title</title></title>
|
<head><title>Title</title></title>
|
||||||
<body>
|
<body>
|
||||||
<div id="duplicate-id"/>
|
<div id="duplicate-id"/>
|
||||||
<div id="duplicate-id"/> <!-- lgtm -->
|
<div id="duplicate-id"/> <!-- lgtm -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
debugger; // lgtm
|
debugger; // lgtm
|
||||||
// lgtm[js/debugger-statement]
|
// lgtm[js/debugger-statement]
|
||||||
// lgtm[js/debugger-statement, js/invocation-of-non-function]
|
// lgtm[js/debugger-statement, js/invocation-of-non-function]
|
||||||
// lgtm[@tag:nullness]
|
// lgtm[@tag:nullness]
|
||||||
// lgtm[@tag:nullness,js/debugger-statement]
|
// lgtm[@tag:nullness,js/debugger-statement]
|
||||||
// lgtm[@expires:2017-06-11]
|
// lgtm[@expires:2017-06-11]
|
||||||
// lgtm[js/invocation-of-non-function] because I know better than lgtm
|
// lgtm[js/invocation-of-non-function] because I know better than lgtm
|
||||||
// lgtm: blah blah
|
// lgtm: blah blah
|
||||||
// lgtm blah blah #falsepositive
|
// lgtm blah blah #falsepositive
|
||||||
//lgtm [js/invocation-of-non-function]
|
//lgtm [js/invocation-of-non-function]
|
||||||
/* lgtm */
|
/* lgtm */
|
||||||
// lgtm[]
|
// lgtm[]
|
||||||
// lgtmfoo
|
// lgtmfoo
|
||||||
//lgtm
|
//lgtm
|
||||||
// lgtm
|
// lgtm
|
||||||
// lgtm [js/debugger-statement]
|
// lgtm [js/debugger-statement]
|
||||||
// foolgtm[js/debugger-statement]
|
// foolgtm[js/debugger-statement]
|
||||||
// foolgtm
|
// foolgtm
|
||||||
// foo; lgtm
|
// foo; lgtm
|
||||||
// foo; lgtm[js/debugger-statement]
|
// foo; lgtm[js/debugger-statement]
|
||||||
// foo lgtm
|
// foo lgtm
|
||||||
// foo lgtm[js/debugger-statement]
|
// foo lgtm[js/debugger-statement]
|
||||||
// foo lgtm bar
|
// foo lgtm bar
|
||||||
// foo lgtm[js/debugger-statement] bar
|
// foo lgtm[js/debugger-statement] bar
|
||||||
// LGTM!
|
// LGTM!
|
||||||
// LGTM[js/debugger-statement]
|
// LGTM[js/debugger-statement]
|
||||||
// lgtm[js/debugger-statement] and lgtm[js/invocation-of-non-function]
|
// lgtm[js/debugger-statement] and lgtm[js/invocation-of-non-function]
|
||||||
// lgtm[js/debugger-statement]; lgtm
|
// lgtm[js/debugger-statement]; lgtm
|
||||||
|
|||||||
Reference in New Issue
Block a user