• 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": 1,
20      "endLine": 22,
21      "endColumn": 2,
22      "problem": "TsOverload",
23      "suggest": "",
24      "rule": "Class TS overloading is not supported(arkts-no-ts-overload)",
25      "severity": "ERROR"
26    },
27    {
28      "line": 19,
29      "column": 14,
30      "endLine": 19,
31      "endColumn": 21,
32      "problem": "ConstructorIfaceFromSdk",
33      "suggest": "",
34      "rule": "Construct signatures are not supported in interfaces.(sdk-ctor-signatures-iface)",
35      "severity": "ERROR"
36    },
37    {
38      "line": 19,
39      "column": 10,
40      "endLine": 21,
41      "endColumn": 5,
42      "problem": "GenericCallNoTypeArgs",
43      "suggest": "",
44      "rule": "Type inference in case of generic function calls is limited (arkts-no-inferred-generic-params)",
45      "severity": "ERROR"
46    },
47    {
48      "line": 24,
49      "column": 3,
50      "endLine": 27,
51      "endColumn": 4,
52      "problem": "LimitedVoidTypeFromSdk",
53      "suggest": "",
54      "rule": "Type \"void\" has no instances.(sdk-limited-void-type)",
55      "severity": "ERROR"
56    },
57    {
58      "line": 24,
59      "column": 9,
60      "endLine": 24,
61      "endColumn": 18,
62      "problem": "SdkAbilityAsynchronousLifecycle",
63      "suggest": "",
64      "rule": "1.2 Void cannot be combined. OnDestroy/onDisconnect (The return type of the method is now void | Promise) needs to be split into two interfaces. (sdk-ability-asynchronous-lifecycle)",
65      "severity": "ERROR"
66    },
67    {
68      "line": 26,
69      "column": 12,
70      "endLine": 26,
71      "endColumn": 23,
72      "problem": "StructuralIdentity",
73      "suggest": "",
74      "rule": "Structural typing is not supported (arkts-no-structural-typing)",
75      "severity": "ERROR"
76    },
77    {
78      "line": 26,
79      "column": 18,
80      "endLine": 26,
81      "endColumn": 22,
82      "problem": "NumericSemantics",
83      "suggest": "",
84      "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
85      "severity": "ERROR"
86    },
87    {
88      "line": 31,
89      "column": 1,
90      "endLine": 35,
91      "endColumn": 2,
92      "problem": "TsOverload",
93      "suggest": "",
94      "rule": "Class TS overloading is not supported(arkts-no-ts-overload)",
95      "severity": "ERROR"
96    },
97    {
98      "line": 32,
99      "column": 14,
100      "endLine": 32,
101      "endColumn": 21,
102      "problem": "ConstructorIfaceFromSdk",
103      "suggest": "",
104      "rule": "Construct signatures are not supported in interfaces.(sdk-ctor-signatures-iface)",
105      "severity": "ERROR"
106    },
107    {
108      "line": 32,
109      "column": 10,
110      "endLine": 34,
111      "endColumn": 5,
112      "problem": "GenericCallNoTypeArgs",
113      "suggest": "",
114      "rule": "Type inference in case of generic function calls is limited (arkts-no-inferred-generic-params)",
115      "severity": "ERROR"
116    },
117    {
118      "line": 37,
119      "column": 3,
120      "endLine": 40,
121      "endColumn": 4,
122      "problem": "LimitedVoidTypeFromSdk",
123      "suggest": "",
124      "rule": "Type \"void\" has no instances.(sdk-limited-void-type)",
125      "severity": "ERROR"
126    },
127    {
128      "line": 37,
129      "column": 3,
130      "endLine": 37,
131      "endColumn": 12,
132      "problem": "SdkAbilityAsynchronousLifecycle",
133      "suggest": "",
134      "rule": "1.2 Void cannot be combined. OnDestroy/onDisconnect (The return type of the method is now void | Promise) needs to be split into two interfaces. (sdk-ability-asynchronous-lifecycle)",
135      "severity": "ERROR"
136    },
137    {
138      "line": 39,
139      "column": 18,
140      "endLine": 39,
141      "endColumn": 22,
142      "problem": "NumericSemantics",
143      "suggest": "",
144      "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)",
145      "severity": "ERROR"
146    }
147  ]
148}
149