• 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": 53,
22            "problem": "InterOpImportJs",
23            "autofix": [
24                {
25                    "start": 604,
26                    "end": 656,
27                    "replacementText": "",
28                    "line": 15,
29                    "column": 1,
30                    "endLine": 15,
31                    "endColumn": 53
32                },
33                {
34                    "start": 656,
35                    "end": 656,
36                    "replacementText": "let GeneratedImportVar_1 = ESValue.load('./binary_operation_js_obj_js');\nlet foo = GeneratedImportVar_1.getProperty('foo');\nlet m = GeneratedImportVar_1.getProperty('m');\nlet n = GeneratedImportVar_1.getProperty('n');\n",
37                    "line": 15,
38                    "column": 1,
39                    "endLine": 15,
40                    "endColumn": 53
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": 9,
50            "endLine": 16,
51            "endColumn": 14,
52            "problem": "InteropObjectProperty",
53            "autofix": [
54                {
55                    "start": 665,
56                    "end": 670,
57                    "replacementText": "foo.getProperty(\"a\")",
58                    "line": 16,
59                    "column": 9,
60                    "endLine": 16,
61                    "endColumn": 14
62                }
63            ],
64            "suggest": "",
65            "rule": "Properties of interop objects can't be accessed directly (arkts-interop-js2s-access-js-prop)",
66            "severity": "ERROR"
67        },
68        {
69            "line": 17,
70            "column": 9,
71            "endLine": 17,
72            "endColumn": 14,
73            "problem": "InteropObjectProperty",
74            "autofix": [
75                {
76                    "start": 679,
77                    "end": 684,
78                    "replacementText": "foo.getProperty(\"b\")",
79                    "line": 17,
80                    "column": 9,
81                    "endLine": 17,
82                    "endColumn": 14
83                }
84            ],
85            "suggest": "",
86            "rule": "Properties of interop objects can't be accessed directly (arkts-interop-js2s-access-js-prop)",
87            "severity": "ERROR"
88        },
89        {
90            "line": 18,
91            "column": 1,
92            "endLine": 18,
93            "endColumn": 2,
94            "problem": "BinaryOperations",
95            "autofix": [
96                {
97                    "start": 665,
98                    "end": 670,
99                    "replacementText": "foo.getProperty(\"a\").toNumber()",
100                    "line": 18,
101                    "column": 1,
102                    "endLine": 18,
103                    "endColumn": 2
104                }
105            ],
106            "suggest": "",
107            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
108            "severity": "ERROR"
109        },
110        {
111            "line": 18,
112            "column": 5,
113            "endLine": 18,
114            "endColumn": 6,
115            "problem": "BinaryOperations",
116            "autofix": [
117                {
118                    "start": 679,
119                    "end": 684,
120                    "replacementText": "foo.getProperty(\"b\").toNumber()",
121                    "line": 18,
122                    "column": 5,
123                    "endLine": 18,
124                    "endColumn": 6
125                }
126            ],
127            "suggest": "",
128            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
129            "severity": "ERROR"
130        },
131        {
132            "line": 19,
133            "column": 1,
134            "endLine": 19,
135            "endColumn": 2,
136            "problem": "BinaryOperations",
137            "autofix": [
138                {
139                    "start": 665,
140                    "end": 670,
141                    "replacementText": "foo.getProperty(\"a\").toNumber()",
142                    "line": 19,
143                    "column": 1,
144                    "endLine": 19,
145                    "endColumn": 2
146                }
147            ],
148            "suggest": "",
149            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
150            "severity": "ERROR"
151        },
152        {
153            "line": 19,
154            "column": 5,
155            "endLine": 19,
156            "endColumn": 6,
157            "problem": "BinaryOperations",
158            "autofix": [
159                {
160                    "start": 679,
161                    "end": 684,
162                    "replacementText": "foo.getProperty(\"b\").toNumber()",
163                    "line": 19,
164                    "column": 5,
165                    "endLine": 19,
166                    "endColumn": 6
167                }
168            ],
169            "suggest": "",
170            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
171            "severity": "ERROR"
172        },
173        {
174            "line": 20,
175            "column": 1,
176            "endLine": 20,
177            "endColumn": 2,
178            "problem": "BinaryOperations",
179            "autofix": [
180                {
181                    "start": 665,
182                    "end": 670,
183                    "replacementText": "foo.getProperty(\"a\").toNumber()",
184                    "line": 20,
185                    "column": 1,
186                    "endLine": 20,
187                    "endColumn": 2
188                }
189            ],
190            "suggest": "",
191            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
192            "severity": "ERROR"
193        },
194        {
195            "line": 20,
196            "column": 5,
197            "endLine": 20,
198            "endColumn": 6,
199            "problem": "BinaryOperations",
200            "autofix": [
201                {
202                    "start": 679,
203                    "end": 684,
204                    "replacementText": "foo.getProperty(\"b\").toNumber()",
205                    "line": 20,
206                    "column": 5,
207                    "endLine": 20,
208                    "endColumn": 6
209                }
210            ],
211            "suggest": "",
212            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
213            "severity": "ERROR"
214        },
215        {
216            "line": 21,
217            "column": 1,
218            "endLine": 21,
219            "endColumn": 2,
220            "problem": "BinaryOperations",
221            "autofix": [
222                {
223                    "start": 665,
224                    "end": 670,
225                    "replacementText": "foo.getProperty(\"a\").toNumber()",
226                    "line": 21,
227                    "column": 1,
228                    "endLine": 21,
229                    "endColumn": 2
230                }
231            ],
232            "suggest": "",
233            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
234            "severity": "ERROR"
235        },
236        {
237            "line": 21,
238            "column": 5,
239            "endLine": 21,
240            "endColumn": 6,
241            "problem": "BinaryOperations",
242            "autofix": [
243                {
244                    "start": 679,
245                    "end": 684,
246                    "replacementText": "foo.getProperty(\"b\").toNumber()",
247                    "line": 21,
248                    "column": 5,
249                    "endLine": 21,
250                    "endColumn": 6
251                }
252            ],
253            "suggest": "",
254            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
255            "severity": "ERROR"
256        },
257        {
258            "line": 22,
259            "column": 1,
260            "endLine": 22,
261            "endColumn": 2,
262            "problem": "BinaryOperations",
263            "autofix": [
264                {
265                    "start": 665,
266                    "end": 670,
267                    "replacementText": "foo.getProperty(\"a\").toNumber()",
268                    "line": 22,
269                    "column": 1,
270                    "endLine": 22,
271                    "endColumn": 2
272                }
273            ],
274            "suggest": "",
275            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
276            "severity": "ERROR"
277        },
278        {
279            "line": 22,
280            "column": 5,
281            "endLine": 22,
282            "endColumn": 6,
283            "problem": "BinaryOperations",
284            "autofix": [
285                {
286                    "start": 679,
287                    "end": 684,
288                    "replacementText": "foo.getProperty(\"b\").toNumber()",
289                    "line": 22,
290                    "column": 5,
291                    "endLine": 22,
292                    "endColumn": 6
293                }
294            ],
295            "suggest": "",
296            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
297            "severity": "ERROR"
298        },
299        {
300            "line": 23,
301            "column": 1,
302            "endLine": 23,
303            "endColumn": 2,
304            "problem": "BinaryOperations",
305            "autofix": [
306                {
307                    "start": 665,
308                    "end": 670,
309                    "replacementText": "foo.getProperty(\"a\").toNumber()",
310                    "line": 23,
311                    "column": 1,
312                    "endLine": 23,
313                    "endColumn": 2
314                }
315            ],
316            "suggest": "",
317            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
318            "severity": "ERROR"
319        },
320        {
321            "line": 23,
322            "column": 6,
323            "endLine": 23,
324            "endColumn": 7,
325            "problem": "BinaryOperations",
326            "autofix": [
327                {
328                    "start": 679,
329                    "end": 684,
330                    "replacementText": "foo.getProperty(\"b\").toNumber()",
331                    "line": 23,
332                    "column": 6,
333                    "endLine": 23,
334                    "endColumn": 7
335                }
336            ],
337            "suggest": "",
338            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
339            "severity": "ERROR"
340        },
341        {
342            "line": 23,
343            "column": 3,
344            "endLine": 23,
345            "endColumn": 5,
346            "problem": "ExponentOp",
347            "autofix": [
348                {
349                    "replacementText": "Math.pow(a, b)",
350                    "start": 715,
351                    "end": 721,
352                    "line": 23,
353                    "column": 3,
354                    "endLine": 23,
355                    "endColumn": 5
356                }
357            ],
358            "suggest": "",
359            "rule": "exponent opartions \"**\" and \"**=\" are disabled (arkts-no-exponent-op)",
360            "severity": "ERROR"
361        },
362        {
363            "line": 25,
364            "column": 1,
365            "endLine": 25,
366            "endColumn": 2,
367            "problem": "BinaryOperations",
368            "autofix": [
369                {
370                    "start": 723,
371                    "end": 724,
372                    "replacementText": "m.toNumber()",
373                    "line": 25,
374                    "column": 1,
375                    "endLine": 25,
376                    "endColumn": 2
377                }
378            ],
379            "suggest": "",
380            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
381            "severity": "ERROR"
382        },
383        {
384            "line": 25,
385            "column": 5,
386            "endLine": 25,
387            "endColumn": 6,
388            "problem": "BinaryOperations",
389            "autofix": [
390                {
391                    "start": 727,
392                    "end": 728,
393                    "replacementText": "n.toNumber()",
394                    "line": 25,
395                    "column": 5,
396                    "endLine": 25,
397                    "endColumn": 6
398                }
399            ],
400            "suggest": "",
401            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
402            "severity": "ERROR"
403        },
404        {
405            "line": 26,
406            "column": 1,
407            "endLine": 26,
408            "endColumn": 2,
409            "problem": "BinaryOperations",
410            "autofix": [
411                {
412                    "start": 729,
413                    "end": 730,
414                    "replacementText": "m.toNumber()",
415                    "line": 26,
416                    "column": 1,
417                    "endLine": 26,
418                    "endColumn": 2
419                }
420            ],
421            "suggest": "",
422            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
423            "severity": "ERROR"
424        },
425        {
426            "line": 26,
427            "column": 5,
428            "endLine": 26,
429            "endColumn": 6,
430            "problem": "BinaryOperations",
431            "autofix": [
432                {
433                    "start": 733,
434                    "end": 734,
435                    "replacementText": "n.toNumber()",
436                    "line": 26,
437                    "column": 5,
438                    "endLine": 26,
439                    "endColumn": 6
440                }
441            ],
442            "suggest": "",
443            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
444            "severity": "ERROR"
445        },
446        {
447            "line": 27,
448            "column": 1,
449            "endLine": 27,
450            "endColumn": 2,
451            "problem": "BinaryOperations",
452            "autofix": [
453                {
454                    "start": 735,
455                    "end": 736,
456                    "replacementText": "m.toNumber()",
457                    "line": 27,
458                    "column": 1,
459                    "endLine": 27,
460                    "endColumn": 2
461                }
462            ],
463            "suggest": "",
464            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
465            "severity": "ERROR"
466        },
467        {
468            "line": 27,
469            "column": 6,
470            "endLine": 27,
471            "endColumn": 7,
472            "problem": "BinaryOperations",
473            "autofix": [
474                {
475                    "start": 740,
476                    "end": 741,
477                    "replacementText": "n.toNumber()",
478                    "line": 27,
479                    "column": 6,
480                    "endLine": 27,
481                    "endColumn": 7
482                }
483            ],
484            "suggest": "",
485            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
486            "severity": "ERROR"
487        },
488        {
489            "line": 27,
490            "column": 3,
491            "endLine": 27,
492            "endColumn": 5,
493            "problem": "ExponentOp",
494            "autofix": [
495                {
496                    "replacementText": "Math.pow(m, n)",
497                    "start": 735,
498                    "end": 741,
499                    "line": 27,
500                    "column": 3,
501                    "endLine": 27,
502                    "endColumn": 5
503                }
504            ],
505            "suggest": "",
506            "rule": "exponent opartions \"**\" and \"**=\" are disabled (arkts-no-exponent-op)",
507            "severity": "ERROR"
508        },
509        {
510            "line": 29,
511            "column": 5,
512            "endLine": 29,
513            "endColumn": 10,
514            "problem": "NumericSemantics",
515            "autofix": [
516                {
517                    "start": 747,
518                    "end": 752,
519                    "replacementText": "x: number = 1",
520                    "line": 29,
521                    "column": 5,
522                    "endLine": 29,
523                    "endColumn": 10
524                }
525            ],
526            "suggest": "",
527            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
528            "severity": "ERROR"
529        },
530        {
531            "line": 29,
532            "column": 9,
533            "endLine": 29,
534            "endColumn": 10,
535            "problem": "NumericSemantics",
536            "autofix": [
537                {
538                    "start": 751,
539                    "end": 752,
540                    "replacementText": "1.0",
541                    "line": 29,
542                    "column": 9,
543                    "endLine": 29,
544                    "endColumn": 10
545                }
546            ],
547            "suggest": "",
548            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
549            "severity": "ERROR"
550        },
551        {
552            "line": 29,
553            "column": 12,
554            "endLine": 29,
555            "endColumn": 17,
556            "problem": "NumericSemantics",
557            "autofix": [
558                {
559                    "start": 754,
560                    "end": 759,
561                    "replacementText": "y: number = 2",
562                    "line": 29,
563                    "column": 12,
564                    "endLine": 29,
565                    "endColumn": 17
566                }
567            ],
568            "suggest": "",
569            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
570            "severity": "ERROR"
571        },
572        {
573            "line": 29,
574            "column": 16,
575            "endLine": 29,
576            "endColumn": 17,
577            "problem": "NumericSemantics",
578            "autofix": [
579                {
580                    "start": 758,
581                    "end": 759,
582                    "replacementText": "2.0",
583                    "line": 29,
584                    "column": 16,
585                    "endLine": 29,
586                    "endColumn": 17
587                }
588            ],
589            "suggest": "",
590            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
591            "severity": "ERROR"
592        },
593        {
594            "line": 33,
595            "column": 3,
596            "endLine": 33,
597            "endColumn": 5,
598            "problem": "ExponentOp",
599            "autofix": [
600                {
601                    "replacementText": "Math.pow(x, y)",
602                    "start": 782,
603                    "end": 788,
604                    "line": 33,
605                    "column": 3,
606                    "endLine": 33,
607                    "endColumn": 5
608                }
609            ],
610            "suggest": "",
611            "rule": "exponent opartions \"**\" and \"**=\" are disabled (arkts-no-exponent-op)",
612            "severity": "ERROR"
613        },
614        {
615            "line": 35,
616            "column": 11,
617            "endLine": 35,
618            "endColumn": 12,
619            "problem": "ObjectLiteralNoContextType",
620            "autofix": [
621                {
622                    "start": 791,
623                    "end": 791,
624                    "replacementText": "interface GeneratedObjectLiteralInterface_1 {\n    a: number;\n    b: number;\n}\n",
625                    "line": 35,
626                    "column": 11,
627                    "endLine": 35,
628                    "endColumn": 12
629                },
630                {
631                    "start": 798,
632                    "end": 798,
633                    "replacementText": ": GeneratedObjectLiteralInterface_1",
634                    "line": 35,
635                    "column": 11,
636                    "endLine": 35,
637                    "endColumn": 12
638                }
639            ],
640            "suggest": "",
641            "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",
642            "severity": "ERROR"
643        },
644        {
645            "line": 35,
646            "column": 16,
647            "endLine": 35,
648            "endColumn": 17,
649            "problem": "NumericSemantics",
650            "autofix": [
651                {
652                    "start": 806,
653                    "end": 807,
654                    "replacementText": "1.0",
655                    "line": 35,
656                    "column": 16,
657                    "endLine": 35,
658                    "endColumn": 17
659                }
660            ],
661            "suggest": "",
662            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
663            "severity": "ERROR"
664        },
665        {
666            "line": 35,
667            "column": 22,
668            "endLine": 35,
669            "endColumn": 23,
670            "problem": "NumericSemantics",
671            "autofix": [
672                {
673                    "start": 812,
674                    "end": 813,
675                    "replacementText": "2.0",
676                    "line": 35,
677                    "column": 22,
678                    "endLine": 35,
679                    "endColumn": 23
680                }
681            ],
682            "suggest": "",
683            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
684            "severity": "ERROR"
685        },
686        {
687            "line": 37,
688            "column": 5,
689            "endLine": 37,
690            "endColumn": 15,
691            "problem": "NumericSemantics",
692            "autofix": [
693                {
694                    "start": 822,
695                    "end": 832,
696                    "replacementText": "x2: number = bar.a",
697                    "line": 37,
698                    "column": 5,
699                    "endLine": 37,
700                    "endColumn": 15
701                }
702            ],
703            "suggest": "",
704            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
705            "severity": "ERROR"
706        },
707        {
708            "line": 37,
709            "column": 17,
710            "endLine": 37,
711            "endColumn": 27,
712            "problem": "NumericSemantics",
713            "autofix": [
714                {
715                    "start": 834,
716                    "end": 844,
717                    "replacementText": "y2: number = bar.b",
718                    "line": 37,
719                    "column": 17,
720                    "endLine": 37,
721                    "endColumn": 27
722                }
723            ],
724            "suggest": "",
725            "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
726            "severity": "ERROR"
727        },
728        {
729            "line": 41,
730            "column": 4,
731            "endLine": 41,
732            "endColumn": 6,
733            "problem": "ExponentOp",
734            "autofix": [
735                {
736                    "replacementText": "Math.pow(x2, y2)",
737                    "start": 873,
738                    "end": 881,
739                    "line": 41,
740                    "column": 4,
741                    "endLine": 41,
742                    "endColumn": 6
743                }
744            ],
745            "suggest": "",
746            "rule": "exponent opartions \"**\" and \"**=\" are disabled (arkts-no-exponent-op)",
747            "severity": "ERROR"
748        },
749        {
750            "line": 43,
751            "column": 1,
752            "endLine": 43,
753            "endColumn": 6,
754            "problem": "BinaryOperations",
755            "autofix": [
756                {
757                    "start": 884,
758                    "end": 889,
759                    "replacementText": "foo.getProperty(\"a\").toNumber()",
760                    "line": 43,
761                    "column": 1,
762                    "endLine": 43,
763                    "endColumn": 6
764                }
765            ],
766            "suggest": "",
767            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
768            "severity": "ERROR"
769        },
770        {
771            "line": 43,
772            "column": 9,
773            "endLine": 43,
774            "endColumn": 14,
775            "problem": "BinaryOperations",
776            "autofix": [
777                {
778                    "start": 892,
779                    "end": 897,
780                    "replacementText": "foo.getProperty(\"b\").toNumber()",
781                    "line": 43,
782                    "column": 9,
783                    "endLine": 43,
784                    "endColumn": 14
785                }
786            ],
787            "suggest": "",
788            "rule": "Binary operations on js objects (arkts-interop-js2s-binary-op)",
789            "severity": "ERROR"
790        },
791        {
792            "line": 43,
793            "column": 1,
794            "endLine": 43,
795            "endColumn": 6,
796            "problem": "InteropObjectProperty",
797            "autofix": [
798                {
799                    "start": 884,
800                    "end": 889,
801                    "replacementText": "foo.getProperty(\"a\")",
802                    "line": 43,
803                    "column": 1,
804                    "endLine": 43,
805                    "endColumn": 6
806                }
807            ],
808            "suggest": "",
809            "rule": "Properties of interop objects can't be accessed directly (arkts-interop-js2s-access-js-prop)",
810            "severity": "ERROR"
811        },
812        {
813            "line": 43,
814            "column": 9,
815            "endLine": 43,
816            "endColumn": 14,
817            "problem": "InteropObjectProperty",
818            "autofix": [
819                {
820                    "start": 892,
821                    "end": 897,
822                    "replacementText": "foo.getProperty(\"b\")",
823                    "line": 43,
824                    "column": 9,
825                    "endLine": 43,
826                    "endColumn": 14
827                }
828            ],
829            "suggest": "",
830            "rule": "Properties of interop objects can't be accessed directly (arkts-interop-js2s-access-js-prop)",
831            "severity": "ERROR"
832        }
833    ]
834}