Skip to content

Commit b12c739

Browse files
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
1 parent 89f2dbf commit b12c739

File tree

6 files changed

+43
-36
lines changed

6 files changed

+43
-36
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[*.{ql,qll,qlref,dbscheme,qhelp}]
1+
[*.{ql,qll,qlref,dbscheme,qhelp,js,html}]
22
end_of_line = lf

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@
1515
*.qlref eol=lf
1616
*.dbscheme eol=lf
1717
*.qhelp eol=lf
18+
*.html eol=lf
19+
*.js eol=lf
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file intentionally contains a mix of different line endings
2+
tst1.js -text
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These files intentionally contain CRLF line endings.
2+
tstWindows.html eol=crlf
3+
tstWindows.js eol=crlf
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<html>
2-
<head><title>Title</title></title>
3-
<body>
4-
<div id="duplicate-id"/>
5-
<div id="duplicate-id"/> <!-- lgtm -->
6-
</body>
7-
</html>
1+
<html>
2+
<head><title>Title</title></title>
3+
<body>
4+
<div id="duplicate-id"/>
5+
<div id="duplicate-id"/> <!-- lgtm -->
6+
</body>
7+
</html>
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
debugger; // lgtm
2-
// lgtm[js/debugger-statement]
3-
// lgtm[js/debugger-statement, js/invocation-of-non-function]
4-
// lgtm[@tag:nullness]
5-
// lgtm[@tag:nullness,js/debugger-statement]
6-
// lgtm[@expires:2017-06-11]
7-
// lgtm[js/invocation-of-non-function] because I know better than lgtm
8-
// lgtm: blah blah
9-
// lgtm blah blah #falsepositive
10-
//lgtm [js/invocation-of-non-function]
11-
/* lgtm */
12-
// lgtm[]
13-
// lgtmfoo
14-
//lgtm
15-
// lgtm
16-
// lgtm [js/debugger-statement]
17-
// foolgtm[js/debugger-statement]
18-
// foolgtm
19-
// foo; lgtm
20-
// foo; lgtm[js/debugger-statement]
21-
// foo lgtm
22-
// foo lgtm[js/debugger-statement]
23-
// foo lgtm bar
24-
// foo lgtm[js/debugger-statement] bar
25-
// LGTM!
26-
// LGTM[js/debugger-statement]
27-
// lgtm[js/debugger-statement] and lgtm[js/invocation-of-non-function]
28-
// lgtm[js/debugger-statement]; lgtm
1+
debugger; // lgtm
2+
// lgtm[js/debugger-statement]
3+
// lgtm[js/debugger-statement, js/invocation-of-non-function]
4+
// lgtm[@tag:nullness]
5+
// lgtm[@tag:nullness,js/debugger-statement]
6+
// lgtm[@expires:2017-06-11]
7+
// lgtm[js/invocation-of-non-function] because I know better than lgtm
8+
// lgtm: blah blah
9+
// lgtm blah blah #falsepositive
10+
//lgtm [js/invocation-of-non-function]
11+
/* lgtm */
12+
// lgtm[]
13+
// lgtmfoo
14+
//lgtm
15+
// lgtm
16+
// lgtm [js/debugger-statement]
17+
// foolgtm[js/debugger-statement]
18+
// foolgtm
19+
// foo; lgtm
20+
// foo; lgtm[js/debugger-statement]
21+
// foo lgtm
22+
// foo lgtm[js/debugger-statement]
23+
// foo lgtm bar
24+
// foo lgtm[js/debugger-statement] bar
25+
// LGTM!
26+
// LGTM[js/debugger-statement]
27+
// lgtm[js/debugger-statement] and lgtm[js/invocation-of-non-function]
28+
// lgtm[js/debugger-statement]; lgtm

0 commit comments

Comments
 (0)