• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "copyright": [
3        "Copyright (c) 2025 Huawei Device Co., Ltd.",
4        "Licensed under the Apache License, Version 2.0 (the 'License');",
5        "you may not use this file except in compliance with the License.",
6        "You may obtain a copy of the License at",
7        "",
8        "http://www.apache.org/licenses/LICENSE-2.0",
9        "",
10        "Unless required by applicable law or agreed to in writing, software",
11        "distributed under the License is distributed on an 'AS IS' BASIS,",
12        "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
13        "See the License for the specific language governing permissions and",
14        "limitations under the License."
15    ],
16    "result": [
17        {
18            "line": 15,
19            "column": 1,
20            "endLine": 15,
21            "endColumn": 51,
22            "problem": "InterOpImportJs",
23            "autofix": [
24                {
25                    "start": 604,
26                    "end": 654,
27                    "replacementText": "",
28                    "line": 15,
29                    "column": 1,
30                    "endLine": 15,
31                    "endColumn": 51
32                },
33                {
34                    "start": 703,
35                    "end": 703,
36                    "replacementText": "let GeneratedImportVar_1 = ESValue.load('./interop_import_js_rules_js');\nlet ff3 = GeneratedImportVar_1.getProperty('ff3');\n",
37                    "line": 15,
38                    "column": 1,
39                    "endLine": 15,
40                    "endColumn": 51
41                }
42            ],
43            "suggest": "",
44            "rule": "Importing directly from \"JS\" module is not supported (arkts-interop-js2s-import-js)",
45            "severity": "ERROR"
46        },
47        {
48            "line": 16,
49            "column": 1,
50            "endLine": 16,
51            "endColumn": 49,
52            "problem": "InterOpImportJs",
53            "autofix": [
54                {
55                    "start": 655,
56                    "end": 703,
57                    "replacementText": "",
58                    "line": 16,
59                    "column": 1,
60                    "endLine": 16,
61                    "endColumn": 49
62                },
63                {
64                    "start": 703,
65                    "end": 703,
66                    "replacementText": "let GeneratedImportVar_2 = ESValue.load('./interop_import_js_index_js');\nlet foo = GeneratedImportVar_2.getProperty('foo');\n",
67                    "line": 16,
68                    "column": 1,
69                    "endLine": 16,
70                    "endColumn": 49
71                }
72            ],
73            "suggest": "",
74            "rule": "Importing directly from \"JS\" module is not supported (arkts-interop-js2s-import-js)",
75            "severity": "ERROR"
76        },
77        {
78            "line": 17,
79            "column": 11,
80            "endLine": 17,
81            "endColumn": 18,
82            "problem": "InteropObjectProperty",
83            "autofix": [
84                {
85                    "start": 714,
86                    "end": 721,
87                    "replacementText": "foo.getProperty(\"arr\")",
88                    "line": 17,
89                    "column": 11,
90                    "endLine": 17,
91                    "endColumn": 18
92                }
93            ],
94            "suggest": "",
95            "rule": "Properties of interop objects can't be accessed directly (arkts-interop-js2s-access-js-prop)",
96            "severity": "ERROR"
97        },
98        {
99            "line": 18,
100            "column": 1,
101            "endLine": 18,
102            "endColumn": 7,
103            "problem": "RuntimeArrayCheck",
104            "suggest": "",
105            "rule": "Array bound not checked. (arkts-runtime-array-check)",
106            "severity": "ERROR"
107        },
108        {
109            "line": 18,
110            "column": 1,
111            "endLine": 18,
112            "endColumn": 7,
113            "problem": "InterOpImportJsIndex",
114            "autofix": [
115                {
116                    "start": 722,
117                    "end": 728,
118                    "replacementText": "arr.getProperty(1)",
119                    "line": 18,
120                    "column": 1,
121                    "endLine": 18,
122                    "endColumn": 7
123                }
124            ],
125            "suggest": "",
126            "rule": "Interop objects can't be indexed directly (arkts-interop-js2s-access-js-index)",
127            "severity": "ERROR"
128        },
129        {
130            "line": 19,
131            "column": 1,
132            "endLine": 19,
133            "endColumn": 7,
134            "problem": "RuntimeArrayCheck",
135            "suggest": "",
136            "rule": "Array bound not checked. (arkts-runtime-array-check)",
137            "severity": "ERROR"
138        },
139        {
140            "line": 19,
141            "column": 1,
142            "endLine": 19,
143            "endColumn": 11,
144            "problem": "InterOpImportJsIndex",
145            "autofix": [
146                {
147                    "start": 729,
148                    "end": 739,
149                    "replacementText": "arr.setProperty(3, ESValue.wrap(4))",
150                    "line": 19,
151                    "column": 1,
152                    "endLine": 19,
153                    "endColumn": 11
154                }
155            ],
156            "suggest": "",
157            "rule": "Interop objects can't be indexed directly (arkts-interop-js2s-access-js-index)",
158            "severity": "ERROR"
159        },
160        {
161            "line": 19,
162            "column": 10,
163            "endLine": 19,
164            "endColumn": 11,
165            "problem": "NumericSemantics",
166            "autofix": [
167                {
168                    "start": 738,
169                    "end": 739,
170                    "replacementText": "4.0",
171                    "line": 19,
172                    "column": 10,
173                    "endLine": 19,
174                    "endColumn": 11
175                }
176            ],
177            "suggest": "",
178            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
179            "severity": "ERROR"
180        },
181        {
182            "line": 21,
183            "column": 12,
184            "endLine": 21,
185            "endColumn": 19,
186            "problem": "InteropObjectProperty",
187            "autofix": [
188                {
189                    "start": 752,
190                    "end": 759,
191                    "replacementText": "ff3.getProperty(\"arr\")",
192                    "line": 21,
193                    "column": 12,
194                    "endLine": 21,
195                    "endColumn": 19
196                }
197            ],
198            "suggest": "",
199            "rule": "Properties of interop objects can't be accessed directly (arkts-interop-js2s-access-js-prop)",
200            "severity": "ERROR"
201        },
202        {
203            "line": 22,
204            "column": 11,
205            "endLine": 22,
206            "endColumn": 22,
207            "problem": "InteropObjectProperty",
208            "autofix": [
209                {
210                    "start": 770,
211                    "end": 781,
212                    "replacementText": "arr1.getProperty(\"length\")",
213                    "line": 22,
214                    "column": 11,
215                    "endLine": 22,
216                    "endColumn": 22
217                }
218            ],
219            "suggest": "",
220            "rule": "Properties of interop objects can't be accessed directly (arkts-interop-js2s-access-js-prop)",
221            "severity": "ERROR"
222        },
223        {
224            "line": 23,
225            "column": 10,
226            "endLine": 23,
227            "endColumn": 15,
228            "problem": "NumericSemantics",
229            "autofix": [
230                {
231                    "start": 801,
232                    "end": 806,
233                    "replacementText": "i: number = 0",
234                    "line": 23,
235                    "column": 10,
236                    "endLine": 23,
237                    "endColumn": 15
238                }
239            ],
240            "suggest": "",
241            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
242            "severity": "ERROR"
243        },
244        {
245            "line": 23,
246            "column": 14,
247            "endLine": 23,
248            "endColumn": 15,
249            "problem": "NumericSemantics",
250            "autofix": [
251                {
252                    "start": 805,
253                    "end": 806,
254                    "replacementText": "0.0",
255                    "line": 23,
256                    "column": 14,
257                    "endLine": 23,
258                    "endColumn": 15
259                }
260            ],
261            "suggest": "",
262            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
263            "severity": "ERROR"
264        },
265        {
266            "line": 23,
267            "column": 21,
268            "endLine": 23,
269            "endColumn": 32,
270            "problem": "InteropObjectProperty",
271            "autofix": [
272                {
273                    "start": 812,
274                    "end": 823,
275                    "replacementText": "arr1.getProperty(\"length\")",
276                    "line": 23,
277                    "column": 21,
278                    "endLine": 23,
279                    "endColumn": 32
280                }
281            ],
282            "suggest": "",
283            "rule": "Properties of interop objects can't be accessed directly (arkts-interop-js2s-access-js-prop)",
284            "severity": "ERROR"
285        },
286        {
287            "line": 24,
288            "column": 17,
289            "endLine": 24,
290            "endColumn": 24,
291            "problem": "InteropJsObjectTraverseJsInstance",
292            "autofix": [
293                {
294                    "replacementText": "arr1.getProperty(i).toNumber()",
295                    "start": 848,
296                    "end": 855,
297                    "line": 24,
298                    "column": 17,
299                    "endLine": 24,
300                    "endColumn": 24
301                }
302            ],
303            "suggest": "",
304            "rule": "Direct usage of interop JS objects is not supported (arkts-interop-js2s-traverse-js-instance)",
305            "severity": "ERROR"
306        },
307        {
308            "line": 24,
309            "column": 17,
310            "endLine": 24,
311            "endColumn": 24,
312            "problem": "InterOpImportJsIndex",
313            "autofix": [
314                {
315                    "start": 848,
316                    "end": 855,
317                    "replacementText": "arr1.getProperty(i)",
318                    "line": 24,
319                    "column": 17,
320                    "endLine": 24,
321                    "endColumn": 24
322                }
323            ],
324            "suggest": "",
325            "rule": "Interop objects can't be indexed directly (arkts-interop-js2s-access-js-index)",
326            "severity": "ERROR"
327        },
328        {
329            "line": 25,
330            "column": 13,
331            "endLine": 25,
332            "endColumn": 20,
333            "problem": "InteropJsObjectTraverseJsInstance",
334            "autofix": [
335                {
336                    "replacementText": "arr1.getProperty(i).toNumber()",
337                    "start": 882,
338                    "end": 889,
339                    "line": 25,
340                    "column": 13,
341                    "endLine": 25,
342                    "endColumn": 20
343                }
344            ],
345            "suggest": "",
346            "rule": "Direct usage of interop JS objects is not supported (arkts-interop-js2s-traverse-js-instance)",
347            "severity": "ERROR"
348        },
349        {
350            "line": 25,
351            "column": 13,
352            "endLine": 25,
353            "endColumn": 20,
354            "problem": "InterOpImportJsIndex",
355            "autofix": [
356                {
357                    "start": 882,
358                    "end": 889,
359                    "replacementText": "arr1.getProperty(i)",
360                    "line": 25,
361                    "column": 13,
362                    "endLine": 25,
363                    "endColumn": 20
364                }
365            ],
366            "suggest": "",
367            "rule": "Interop objects can't be indexed directly (arkts-interop-js2s-access-js-index)",
368            "severity": "ERROR"
369        },
370        {
371            "line": 26,
372            "column": 5,
373            "endLine": 26,
374            "endColumn": 12,
375            "problem": "InteropJsObjectTraverseJsInstance",
376            "autofix": [
377                {
378                    "replacementText": "arr1.setProperty(i, ESValue.wrap(0 //error\n))",
379                    "start": 903,
380                    "end": 914,
381                    "line": 26,
382                    "column": 5,
383                    "endLine": 26,
384                    "endColumn": 12
385                }
386            ],
387            "suggest": "",
388            "rule": "Direct usage of interop JS objects is not supported (arkts-interop-js2s-traverse-js-instance)",
389            "severity": "ERROR"
390        },
391        {
392            "line": 26,
393            "column": 5,
394            "endLine": 26,
395            "endColumn": 16,
396            "problem": "InterOpImportJsIndex",
397            "autofix": [
398                {
399                    "start": 903,
400                    "end": 914,
401                    "replacementText": "arr1.setProperty(i, ESValue.wrap(0))",
402                    "line": 26,
403                    "column": 5,
404                    "endLine": 26,
405                    "endColumn": 16
406                }
407            ],
408            "suggest": "",
409            "rule": "Interop objects can't be indexed directly (arkts-interop-js2s-access-js-index)",
410            "severity": "ERROR"
411        },
412        {
413            "line": 26,
414            "column": 15,
415            "endLine": 26,
416            "endColumn": 16,
417            "problem": "NumericSemantics",
418            "autofix": [
419                {
420                    "start": 913,
421                    "end": 914,
422                    "replacementText": "0.0",
423                    "line": 26,
424                    "column": 15,
425                    "endLine": 26,
426                    "endColumn": 16
427                }
428            ],
429            "suggest": "",
430            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
431            "severity": "ERROR"
432        },
433        {
434            "line": 27,
435            "column": 17,
436            "endLine": 27,
437            "endColumn": 24,
438            "problem": "InteropJsObjectTraverseJsInstance",
439            "autofix": [
440                {
441                    "replacementText": "arr1.getProperty(i).toNumber()",
442                    "start": 940,
443                    "end": 947,
444                    "line": 27,
445                    "column": 17,
446                    "endLine": 27,
447                    "endColumn": 24
448                }
449            ],
450            "suggest": "",
451            "rule": "Direct usage of interop JS objects is not supported (arkts-interop-js2s-traverse-js-instance)",
452            "severity": "ERROR"
453        },
454        {
455            "line": 27,
456            "column": 17,
457            "endLine": 27,
458            "endColumn": 24,
459            "problem": "InterOpImportJsIndex",
460            "autofix": [
461                {
462                    "start": 940,
463                    "end": 947,
464                    "replacementText": "arr1.getProperty(i)",
465                    "line": 27,
466                    "column": 17,
467                    "endLine": 27,
468                    "endColumn": 24
469                }
470            ],
471            "suggest": "",
472            "rule": "Interop objects can't be indexed directly (arkts-interop-js2s-access-js-index)",
473            "severity": "ERROR"
474        },
475        {
476            "line": 30,
477            "column": 1,
478            "endLine": 34,
479            "endColumn": 2,
480            "problem": "InteropJsObjectTraverseJsInstance",
481            "suggest": "",
482            "rule": "Direct usage of interop JS objects is not supported (arkts-interop-js2s-traverse-js-instance)",
483            "severity": "ERROR"
484        },
485        {
486            "line": 31,
487            "column": 18,
488            "endLine": 31,
489            "endColumn": 19,
490            "problem": "NumericSemantics",
491            "autofix": [
492                {
493                    "start": 1019,
494                    "end": 1020,
495                    "replacementText": "8.0",
496                    "line": 31,
497                    "column": 18,
498                    "endLine": 31,
499                    "endColumn": 19
500                }
501            ],
502            "suggest": "",
503            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
504            "severity": "ERROR"
505        }
506    ]
507}
508