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": 20, 19 "column": 19, 20 "endLine": 20, 21 "endColumn": 28, 22 "problem": "DuplicateDeclNameFromSdk", 23 "suggest": "", 24 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 25 "severity": "ERROR" 26 }, 27 { 28 "line": 20, 29 "column": 35, 30 "endLine": 20, 31 "endColumn": 44, 32 "problem": "DuplicateDeclNameFromSdk", 33 "suggest": "", 34 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 35 "severity": "ERROR" 36 }, 37 { 38 "line": 20, 39 "column": 35, 40 "endLine": 20, 41 "endColumn": 44, 42 "problem": "DynamicCtorCall", 43 "suggest": "", 44 "rule": "\"new\" expression with dynamic constructor type is not supported (arkts-no-dynamic-ctor-call)", 45 "severity": "ERROR" 46 }, 47 { 48 "line": 21, 49 "column": 19, 50 "endLine": 21, 51 "endColumn": 28, 52 "problem": "DuplicateDeclNameFromSdk", 53 "suggest": "", 54 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 55 "severity": "ERROR" 56 }, 57 { 58 "line": 22, 59 "column": 27, 60 "endLine": 22, 61 "endColumn": 36, 62 "problem": "DuplicateDeclNameFromSdk", 63 "suggest": "", 64 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 65 "severity": "ERROR" 66 }, 67 { 68 "line": 22, 69 "column": 40, 70 "endLine": 22, 71 "endColumn": 51, 72 "problem": "GenericCallNoTypeArgs", 73 "suggest": "", 74 "rule": "Type inference in case of generic function calls is limited (arkts-no-inferred-generic-params)", 75 "severity": "ERROR" 76 }, 77 { 78 "line": 24, 79 "column": 14, 80 "endLine": 24, 81 "endColumn": 20, 82 "problem": "NumericSemantics", 83 "suggest": "", 84 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 85 "severity": "ERROR" 86 }, 87 { 88 "line": 24, 89 "column": 18, 90 "endLine": 24, 91 "endColumn": 20, 92 "problem": "NumericSemantics", 93 "suggest": "", 94 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 95 "severity": "ERROR" 96 }, 97 { 98 "line": 24, 99 "column": 26, 100 "endLine": 24, 101 "endColumn": 28, 102 "problem": "NumericSemantics", 103 "suggest": "", 104 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 105 "severity": "ERROR" 106 }, 107 { 108 "line": 25, 109 "column": 31, 110 "endLine": 25, 111 "endColumn": 40, 112 "problem": "DuplicateDeclNameFromSdk", 113 "suggest": "", 114 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 115 "severity": "ERROR" 116 }, 117 { 118 "line": 25, 119 "column": 31, 120 "endLine": 25, 121 "endColumn": 40, 122 "problem": "DynamicCtorCall", 123 "suggest": "", 124 "rule": "\"new\" expression with dynamic constructor type is not supported (arkts-no-dynamic-ctor-call)", 125 "severity": "ERROR" 126 }, 127 { 128 "line": 30, 129 "column": 38, 130 "endLine": 30, 131 "endColumn": 47, 132 "problem": "DuplicateDeclNameFromSdk", 133 "suggest": "", 134 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 135 "severity": "ERROR" 136 }, 137 { 138 "line": 40, 139 "column": 30, 140 "endLine": 40, 141 "endColumn": 39, 142 "problem": "DuplicateDeclNameFromSdk", 143 "suggest": "", 144 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 145 "severity": "ERROR" 146 }, 147 { 148 "line": 46, 149 "column": 42, 150 "endLine": 46, 151 "endColumn": 60, 152 "problem": "DuplicateDeclNameFromSdk", 153 "suggest": "", 154 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 155 "severity": "ERROR" 156 }, 157 { 158 "line": 47, 159 "column": 42, 160 "endLine": 47, 161 "endColumn": 60, 162 "problem": "DuplicateDeclNameFromSdk", 163 "suggest": "", 164 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 165 "severity": "ERROR" 166 }, 167 { 168 "line": 49, 169 "column": 31, 170 "endLine": 49, 171 "endColumn": 49, 172 "problem": "DuplicateDeclNameFromSdk", 173 "suggest": "", 174 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 175 "severity": "ERROR" 176 }, 177 { 178 "line": 50, 179 "column": 31, 180 "endLine": 50, 181 "endColumn": 49, 182 "problem": "DuplicateDeclNameFromSdk", 183 "suggest": "", 184 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 185 "severity": "ERROR" 186 }, 187 { 188 "line": 53, 189 "column": 18, 190 "endLine": 53, 191 "endColumn": 36, 192 "problem": "DuplicateDeclNameFromSdk", 193 "suggest": "", 194 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 195 "severity": "ERROR" 196 }, 197 { 198 "line": 54, 199 "column": 15, 200 "endLine": 54, 201 "endColumn": 37, 202 "problem": "AnyType", 203 "suggest": "", 204 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)", 205 "severity": "ERROR" 206 }, 207 { 208 "line": 54, 209 "column": 19, 210 "endLine": 54, 211 "endColumn": 37, 212 "problem": "DuplicateDeclNameFromSdk", 213 "suggest": "", 214 "rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)", 215 "severity": "ERROR" 216 }, 217 { 218 "line": 67, 219 "column": 3, 220 "endLine": 67, 221 "endColumn": 16, 222 "problem": "ExplicitFunctionType", 223 "suggest": "", 224 "rule": "The function type should be explicit (arkts-no-ts-like-function-call)", 225 "severity": "ERROR" 226 }, 227 { 228 "line": 17, 229 "column": 2, 230 "endLine": 17, 231 "endColumn": 7, 232 "problem": "UIInterfaceImport", 233 "suggest": "", 234 "rule": "The ArkUI interface \"Entry\" should be imported before it is used (arkui-modular-interface)", 235 "severity": "ERROR" 236 }, 237 { 238 "line": 18, 239 "column": 2, 240 "endLine": 18, 241 "endColumn": 11, 242 "problem": "UIInterfaceImport", 243 "suggest": "", 244 "rule": "The ArkUI interface \"Component\" should be imported before it is used (arkui-modular-interface)", 245 "severity": "ERROR" 246 }, 247 { 248 "line": 20, 249 "column": 19, 250 "endLine": 20, 251 "endColumn": 28, 252 "problem": "UIInterfaceImport", 253 "suggest": "", 254 "rule": "The ArkUI interface \"TextStyle\" should be imported before it is used (arkui-modular-interface)", 255 "severity": "ERROR" 256 }, 257 { 258 "line": 20, 259 "column": 35, 260 "endLine": 20, 261 "endColumn": 44, 262 "problem": "UIInterfaceImport", 263 "suggest": "", 264 "rule": "The ArkUI interface \"TextStyle\" should be imported before it is used (arkui-modular-interface)", 265 "severity": "ERROR" 266 }, 267 { 268 "line": 20, 269 "column": 57, 270 "endLine": 20, 271 "endColumn": 62, 272 "problem": "UIInterfaceImport", 273 "suggest": "", 274 "rule": "The ArkUI interface \"Color\" should be imported before it is used (arkui-modular-interface)", 275 "severity": "ERROR" 276 }, 277 { 278 "line": 21, 279 "column": 19, 280 "endLine": 21, 281 "endColumn": 28, 282 "problem": "UIInterfaceImport", 283 "suggest": "", 284 "rule": "The ArkUI interface \"TextStyle\" should be imported before it is used (arkui-modular-interface)", 285 "severity": "ERROR" 286 }, 287 { 288 "line": 22, 289 "column": 4, 290 "endLine": 22, 291 "endColumn": 9, 292 "problem": "UIInterfaceImport", 293 "suggest": "", 294 "rule": "The ArkUI interface \"State\" should be imported before it is used (arkui-modular-interface)", 295 "severity": "ERROR" 296 }, 297 { 298 "line": 22, 299 "column": 27, 300 "endLine": 22, 301 "endColumn": 36, 302 "problem": "UIInterfaceImport", 303 "suggest": "", 304 "rule": "The ArkUI interface \"TextStyle\" should be imported before it is used (arkui-modular-interface)", 305 "severity": "ERROR" 306 }, 307 { 308 "line": 25, 309 "column": 31, 310 "endLine": 25, 311 "endColumn": 40, 312 "problem": "UIInterfaceImport", 313 "suggest": "", 314 "rule": "The ArkUI interface \"TextStyle\" should be imported before it is used (arkui-modular-interface)", 315 "severity": "ERROR" 316 }, 317 { 318 "line": 29, 319 "column": 5, 320 "endLine": 29, 321 "endColumn": 9, 322 "problem": "UIInterfaceImport", 323 "suggest": "", 324 "rule": "The ArkUI interface \"List\" should be imported before it is used (arkui-modular-interface)", 325 "severity": "ERROR" 326 }, 327 { 328 "line": 30, 329 "column": 7, 330 "endLine": 30, 331 "endColumn": 14, 332 "problem": "UIInterfaceImport", 333 "suggest": "", 334 "rule": "The ArkUI interface \"ForEach\" should be imported before it is used (arkui-modular-interface)", 335 "severity": "ERROR" 336 }, 337 { 338 "line": 30, 339 "column": 38, 340 "endLine": 30, 341 "endColumn": 47, 342 "problem": "UIInterfaceImport", 343 "suggest": "", 344 "rule": "The ArkUI interface \"TextStyle\" should be imported before it is used (arkui-modular-interface)", 345 "severity": "ERROR" 346 }, 347 { 348 "line": 31, 349 "column": 9, 350 "endLine": 31, 351 "endColumn": 17, 352 "problem": "UIInterfaceImport", 353 "suggest": "", 354 "rule": "The ArkUI interface \"ListItem\" should be imported before it is used (arkui-modular-interface)", 355 "severity": "ERROR" 356 }, 357 { 358 "line": 32, 359 "column": 11, 360 "endLine": 32, 361 "endColumn": 15, 362 "problem": "UIInterfaceImport", 363 "suggest": "", 364 "rule": "The ArkUI interface \"Text\" should be imported before it is used (arkui-modular-interface)", 365 "severity": "ERROR" 366 }, 367 { 368 "line": 40, 369 "column": 30, 370 "endLine": 40, 371 "endColumn": 39, 372 "problem": "UIInterfaceImport", 373 "suggest": "", 374 "rule": "The ArkUI interface \"TextStyle\" should be imported before it is used (arkui-modular-interface)", 375 "severity": "ERROR" 376 }, 377 { 378 "line": 46, 379 "column": 21, 380 "endLine": 46, 381 "endColumn": 39, 382 "problem": "UIInterfaceImport", 383 "suggest": "", 384 "rule": "The ArkUI interface \"HyperlinkAttribute\" should be imported before it is used (arkui-modular-interface)", 385 "severity": "ERROR" 386 }, 387 { 388 "line": 47, 389 "column": 21, 390 "endLine": 47, 391 "endColumn": 39, 392 "problem": "UIInterfaceImport", 393 "suggest": "", 394 "rule": "The ArkUI interface \"HyperlinkAttribute\" should be imported before it is used (arkui-modular-interface)", 395 "severity": "ERROR" 396 }, 397 { 398 "line": 49, 399 "column": 10, 400 "endLine": 49, 401 "endColumn": 28, 402 "problem": "UIInterfaceImport", 403 "suggest": "", 404 "rule": "The ArkUI interface \"HyperlinkAttribute\" should be imported before it is used (arkui-modular-interface)", 405 "severity": "ERROR" 406 }, 407 { 408 "line": 50, 409 "column": 10, 410 "endLine": 50, 411 "endColumn": 28, 412 "problem": "UIInterfaceImport", 413 "suggest": "", 414 "rule": "The ArkUI interface \"HyperlinkAttribute\" should be imported before it is used (arkui-modular-interface)", 415 "severity": "ERROR" 416 }, 417 { 418 "line": 52, 419 "column": 21, 420 "endLine": 52, 421 "endColumn": 39, 422 "problem": "UIInterfaceImport", 423 "suggest": "", 424 "rule": "The ArkUI interface \"HyperlinkAttribute\" should be imported before it is used (arkui-modular-interface)", 425 "severity": "ERROR" 426 } 427 ] 428}