Skip to content

Commit 66f2fb6

Browse files
authored
JS-526 Support ESLint configuration comment syntax (#5075)
1 parent 872478d commit 66f2fb6

File tree

149 files changed

+5638
-19693
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+5638
-19693
lines changed

its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/TypeScriptAnalysisTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ void test() throws Exception {
5555

5656
String sampleFileKey = projectKey + ":sample.lint.ts";
5757
List<Issue> issuesList = getIssues(sampleFileKey);
58-
assertThat(issuesList).hasSize(1);
59-
assertThat(issuesList.get(0).getLine()).isEqualTo(4);
58+
assertThat(issuesList).hasSize(2);
59+
assertThat(issuesList.get(0).getLine()).isEqualTo(3);
60+
assertThat(issuesList.get(1).getLine()).isEqualTo(4);
6061

6162
assertThat(OrchestratorStarter.getMeasureAsInt(sampleFileKey, "ncloc")).isEqualTo(7);
6263
assertThat(OrchestratorStarter.getMeasureAsInt(sampleFileKey, "classes")).isEqualTo(0);
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,19 @@
11
{
2-
"Ghost:core/client/app/components/gh-cm-editor.js": [
3-
24
4-
],
52
"Ghost:core/client/app/components/gh-navitem-url-input.js": [
63
18
74
],
85
"Ghost:core/client/app/components/gh-profile-image.js": [
96
51
107
],
11-
"Ghost:core/client/app/components/gh-search-input.js": [
12-
116
13-
],
14-
"Ghost:core/client/app/components/gh-tag-settings-form.js": [
15-
102
16-
],
17-
"Ghost:core/client/app/components/gh-trim-focus-input.js": [
18-
13
19-
],
20-
"Ghost:core/client/app/components/modals/base.js": [
21-
16
22-
],
238
"Ghost:core/client/app/controllers/setup/three.js": [
249
45
2510
],
26-
"Ghost:core/client/app/helpers/gh-format-html.js": [
27-
22
28-
],
29-
"Ghost:core/client/app/helpers/gh-format-markdown.js": [
30-
7,
31-
28
32-
],
33-
"Ghost:core/client/app/mixins/ed-editor-shortcuts.js": [
34-
106
35-
],
36-
"Ghost:core/client/app/mixins/shortcuts.js": [
37-
9
38-
],
3911
"Ghost:core/client/app/models/user.js": [
4012
67
4113
],
42-
"Ghost:core/client/app/routes/settings/tags.js": [
43-
103
44-
],
45-
"Ghost:core/client/app/utils/random-password.js": [
46-
4
47-
],
4814
"Ghost:core/client/app/utils/validator-extensions.js": [
4915
8
5016
],
51-
"Ghost:core/client/app/utils/word-count.js": [
52-
5
53-
],
5417
"Ghost:core/client/app/validators/invite-user.js": [
5518
9
5619
],
@@ -98,51 +61,5 @@
9861
],
9962
"Ghost:core/client/tests/acceptance/team-test.js": [
10063
37
101-
],
102-
"Ghost:core/client/tests/integration/components/gh-profile-image-test.js": [
103-
59
104-
],
105-
"Ghost:core/test/functional/client/about_test.js": [
106-
6
107-
],
108-
"Ghost:core/test/functional/client/app_test.js": [
109-
6,
110-
142
111-
],
112-
"Ghost:core/test/functional/client/content_test.js": [
113-
6,
114-
26
115-
],
116-
"Ghost:core/test/functional/client/editor_test.js": [
117-
5,
118-
42
119-
],
120-
"Ghost:core/test/functional/client/psm_test.js": [
121-
6,
122-
66
123-
],
124-
"Ghost:core/test/functional/client/settings_test.js": [
125-
10
126-
],
127-
"Ghost:core/test/functional/client/signin_test.js": [
128-
6,
129-
27,
130-
43,
131-
73
132-
],
133-
"Ghost:core/test/functional/client/signout_test.js": [
134-
5
135-
],
136-
"Ghost:core/test/functional/client/signup_test.js": [
137-
6
138-
],
139-
"Ghost:core/test/functional/client/team_test.js": [
140-
10
141-
],
142-
"Ghost:core/test/functional/setup/setup_test.js": [
143-
5,
144-
11,
145-
20,
146-
79
14764
]
14865
}

its/ruling/src/test/expected/jsts/ace/javascript-S103.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@
8080
],
8181
"ace:lib/ace/mode/yaml/yaml-lint.js": [
8282
1,
83-
79,
84-
2879
83+
79
8584
],
8685
"ace:src/autocomplete_test.js": [
8786
29,

its/ruling/src/test/expected/jsts/ace/javascript-S122.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,7 @@
403403
696
404404
],
405405
"ace:src/snippets_test.js": [
406-
196,
407-
228
406+
196
408407
],
409408
"ace:src/test/all_browser.js": [
410409
117

its/ruling/src/test/expected/jsts/ace/javascript-S1442.json

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
"ace:demo/kitchen-sink/docs/javascript.js": [
66
3
77
],
8-
"ace:src/ext/emmet.js": [
9-
211
10-
],
118
"ace:src/keyboard/vim.js": [
129
5475,
1310
5500

its/ruling/src/test/expected/jsts/ace/javascript-S2137.json

-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,5 @@
1818
4191,
1919
4192,
2020
4214
21-
],
22-
"ace:src/snippets_test.js": [
23-
228,
24-
244
2521
]
2622
}

its/ruling/src/test/expected/jsts/ace/javascript-S2424.json

-4
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
5454
"ace:src/snippets.js": [
5555
109
5656
],
57-
"ace:src/snippets_test.js": [
58-
228,
59-
244
60-
],
6157
"ace:src/test/asyncjs/async.js": [
6258
272,
6359
277

its/ruling/src/test/expected/jsts/ace/javascript-S3523.json

-5
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,5 @@
99
248,
1010
2408,
1111
3316
12-
],
13-
"ace:lib/ace/mode/yaml/yaml-lint.js": [
14-
3528,
15-
3533,
16-
4037
1712
]
1813
}

its/ruling/src/test/expected/jsts/ace/javascript-S3827.json

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
2-
"ace:Makefile.dryice.js": [
3-
725,
4-
725
5-
],
62
"ace:build_support/editor.html": [
73
33
84
],

its/ruling/src/test/expected/jsts/angular.js/javascript-S103.json

-7
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
"angular.js:src/ng/animate.js": [
66
307
77
],
8-
"angular.js:src/ng/directive/input.js": [
9-
27
10-
],
11-
"angular.js:src/ng/directive/ngOptions.js": [
12-
237,
13-
238
14-
],
158
"angular.js:src/ng/sce.js": [
169
622,
1710
625,

its/ruling/src/test/expected/jsts/angular.js/javascript-S1143.json

-5
This file was deleted.

its/ruling/src/test/expected/jsts/angular.js/javascript-S1440.json

-15
This file was deleted.

its/ruling/src/test/expected/jsts/angular.js/javascript-S2189.json

-8
This file was deleted.

its/ruling/src/test/expected/jsts/angular.js/javascript-S2430.json

-5
This file was deleted.

its/ruling/src/test/expected/jsts/angular.js/javascript-S2703.json

-5
This file was deleted.

its/ruling/src/test/expected/jsts/angular.js/javascript-S3523.json

-8
This file was deleted.

its/ruling/src/test/expected/jsts/angular.js/javascript-S3696.json

-5
This file was deleted.

its/ruling/src/test/expected/jsts/angular.js/javascript-S3798.json

-22
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,7 @@
328328
534,
329329
541,
330330
554,
331-
578,
332-
601,
333331
605,
334-
609,
335332
618,
336333
626,
337334
809,
@@ -371,7 +368,6 @@
371368
34
372369
],
373370
"angular.js:src/ng/browser.js": [
374-
4,
375371
9,
376372
34,
377373
342
@@ -502,12 +498,6 @@
502498
93
503499
],
504500
"angular.js:src/ng/directive/ngModel.js": [
505-
16,
506-
17,
507-
18,
508-
19,
509-
20,
510-
21,
511501
22,
512502
23,
513503
25,
@@ -678,7 +668,6 @@
678668
59,
679669
81,
680670
92,
681-
98,
682671
103,
683672
108,
684673
122,
@@ -943,10 +932,6 @@
943932
"angular.js:src/ngMessageFormat/messageFormatService.js": [
944933
175,
945934
202,
946-
212,
947-
213,
948-
214,
949-
215,
950935
216,
951936
218
952937
],
@@ -1022,15 +1007,8 @@
10221007
84
10231008
],
10241009
"angular.js:src/ngTouch/touch.js": [
1025-
25,
10261010
29
10271011
],
1028-
"angular.js:src/routeToRegExp.js": [
1029-
17
1030-
],
1031-
"angular.js:src/shallowCopy.js": [
1032-
10
1033-
],
10341012
"angular.js:src/stringify.js": [
10351013
5,
10361014
28

0 commit comments

Comments
 (0)