• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "copyright": [
3        "Copyright (c) 2024 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": 18,
19            "column": 5,
20            "endLine": 18,
21            "endColumn": 11,
22            "problem": "ParameterProperties",
23            "autofix": [
24                {
25                    "start": 622,
26                    "end": 622,
27                    "replacementText": "public readonly x: number;\nprotected y: number;\nprivate z: number;\n"
28                },
29                {
30                    "start": 639,
31                    "end": 664,
32                    "replacementText": "x: number"
33                },
34                {
35                    "start": 670,
36                    "end": 689,
37                    "replacementText": "y: number"
38                },
39                {
40                    "start": 695,
41                    "end": 712,
42                    "replacementText": "z: number"
43                },
44                {
45                    "start": 717,
46                    "end": 719,
47                    "replacementText": "{\n    this.x = x;\n    this.y = y;\n    this.z = z;\n}"
48                }
49            ],
50            "suggest": "",
51            "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
52            "severity": "ERROR"
53        },
54        {
55            "line": 19,
56            "column": 5,
57            "endLine": 19,
58            "endColumn": 14,
59            "problem": "ParameterProperties",
60            "autofix": [
61                {
62                    "start": 622,
63                    "end": 622,
64                    "replacementText": "public readonly x: number;\nprotected y: number;\nprivate z: number;\n"
65                },
66                {
67                    "start": 639,
68                    "end": 664,
69                    "replacementText": "x: number"
70                },
71                {
72                    "start": 670,
73                    "end": 689,
74                    "replacementText": "y: number"
75                },
76                {
77                    "start": 695,
78                    "end": 712,
79                    "replacementText": "z: number"
80                },
81                {
82                    "start": 717,
83                    "end": 719,
84                    "replacementText": "{\n    this.x = x;\n    this.y = y;\n    this.z = z;\n}"
85                }
86            ],
87            "suggest": "",
88            "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
89            "severity": "ERROR"
90        },
91        {
92            "line": 20,
93            "column": 5,
94            "endLine": 20,
95            "endColumn": 12,
96            "problem": "ParameterProperties",
97            "autofix": [
98                {
99                    "start": 622,
100                    "end": 622,
101                    "replacementText": "public readonly x: number;\nprotected y: number;\nprivate z: number;\n"
102                },
103                {
104                    "start": 639,
105                    "end": 664,
106                    "replacementText": "x: number"
107                },
108                {
109                    "start": 670,
110                    "end": 689,
111                    "replacementText": "y: number"
112                },
113                {
114                    "start": 695,
115                    "end": 712,
116                    "replacementText": "z: number"
117                },
118                {
119                    "start": 717,
120                    "end": 719,
121                    "replacementText": "{\n    this.x = x;\n    this.y = y;\n    this.z = z;\n}"
122                }
123            ],
124            "suggest": "",
125            "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
126            "severity": "ERROR"
127        },
128        {
129            "line": 34,
130            "column": 26,
131            "endLine": 34,
132            "endColumn": 32,
133            "problem": "ParameterProperties",
134            "autofix": [
135                {
136                    "start": 870,
137                    "end": 870,
138                    "replacementText": "public w: string;\nprivate readonly r: number[];\n"
139                },
140                {
141                    "start": 893,
142                    "end": 913,
143                    "replacementText": "w = 'default'"
144                },
145                {
146                    "start": 927,
147                    "end": 967,
148                    "replacementText": "r: number[] = [1, 2, 3]"
149                },
150                {
151                    "start": 969,
152                    "end": 1021,
153                    "replacementText": "{\n    this.w = w;\n    this.r = r;\n    console.log(q, this.w, e, this.r, this.f);\n}"
154                }
155            ],
156            "suggest": "",
157            "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
158            "severity": "ERROR"
159        },
160        {
161            "line": 34,
162            "column": 60,
163            "endLine": 34,
164            "endColumn": 67,
165            "problem": "ParameterProperties",
166            "autofix": [
167                {
168                    "start": 870,
169                    "end": 870,
170                    "replacementText": "public w: string;\nprivate readonly r: number[];\n"
171                },
172                {
173                    "start": 893,
174                    "end": 913,
175                    "replacementText": "w = 'default'"
176                },
177                {
178                    "start": 927,
179                    "end": 967,
180                    "replacementText": "r: number[] = [1, 2, 3]"
181                },
182                {
183                    "start": 969,
184                    "end": 1021,
185                    "replacementText": "{\n    this.w = w;\n    this.r = r;\n    console.log(q, this.w, e, this.r, this.f);\n}"
186                }
187            ],
188            "suggest": "",
189            "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
190            "severity": "ERROR"
191        },
192        {
193            "line": 43,
194            "column": 15,
195            "endLine": 43,
196            "endColumn": 21,
197            "problem": "ParameterProperties",
198            "suggest": "",
199            "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
200            "severity": "ERROR"
201        },
202        {
203            "line": 43,
204            "column": 25,
205            "endLine": 43,
206            "endColumn": 28,
207            "problem": "AnyType",
208            "suggest": "",
209            "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)",
210            "severity": "ERROR"
211        },
212        {
213            "line": 47,
214            "column": 15,
215            "endLine": 47,
216            "endColumn": 21,
217            "problem": "ParameterProperties",
218            "suggest": "",
219            "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
220            "severity": "ERROR"
221        },
222        {
223            "line": 47,
224            "column": 33,
225            "endLine": 47,
226            "endColumn": 40,
227            "problem": "ParameterProperties",
228            "suggest": "",
229            "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)",
230            "severity": "ERROR"
231        },
232        {
233            "line": 47,
234            "column": 44,
235            "endLine": 47,
236            "endColumn": 45,
237            "problem": "ObjectTypeLiteral",
238            "autofix": [
239                {
240                    "start": 1139,
241                    "end": 1139,
242                    "replacementText": "interface GeneratedTypeLiteralInterface_1 {\n    x: string;\n}\n"
243                },
244                {
245                    "start": 1192,
246                    "end": 1203,
247                    "replacementText": "GeneratedTypeLiteralInterface_1"
248                }
249            ],
250            "suggest": "",
251            "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",
252            "severity": "ERROR"
253        }
254    ]
255}