1{ 2 "copyright": [ 3 "Copyright (c) 2023-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": 27, 19 "column": 6, 20 "endLine": 27, 21 "endColumn": 7, 22 "problem": "ObjectTypeLiteral", 23 "suggest": "", 24 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)", 25 "severity": "ERROR" 26 }, 27 { 28 "line": 28, 29 "column": 6, 30 "endLine": 28, 31 "endColumn": 9, 32 "problem": "AnyType", 33 "suggest": "", 34 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)", 35 "severity": "ERROR" 36 }, 37 { 38 "line": 35, 39 "column": 12, 40 "endLine": 35, 41 "endColumn": 13, 42 "problem": "ObjectLiteralNoContextType", 43 "suggest": "", 44 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 45 "severity": "ERROR" 46 }, 47 { 48 "line": 36, 49 "column": 11, 50 "endLine": 36, 51 "endColumn": 14, 52 "problem": "AnyType", 53 "suggest": "", 54 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)", 55 "severity": "ERROR" 56 }, 57 { 58 "line": 37, 59 "column": 11, 60 "endLine": 37, 61 "endColumn": 12, 62 "problem": "ObjectTypeLiteral", 63 "suggest": "", 64 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)", 65 "severity": "ERROR" 66 }, 67 { 68 "line": 37, 69 "column": 38, 70 "endLine": 37, 71 "endColumn": 39, 72 "problem": "ObjectLiteralNoContextType", 73 "suggest": "", 74 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 75 "severity": "ERROR" 76 }, 77 { 78 "line": 40, 79 "column": 16, 80 "endLine": 40, 81 "endColumn": 17, 82 "problem": "ObjectLiteralNoContextType", 83 "suggest": "", 84 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 85 "severity": "ERROR" 86 }, 87 { 88 "line": 42, 89 "column": 8, 90 "endLine": 42, 91 "endColumn": 9, 92 "problem": "ObjectLiteralNoContextType", 93 "suggest": "", 94 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 95 "severity": "ERROR" 96 }, 97 { 98 "line": 49, 99 "column": 8, 100 "endLine": 49, 101 "endColumn": 9, 102 "problem": "ObjectLiteralNoContextType", 103 "suggest": "", 104 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 105 "severity": "ERROR" 106 }, 107 { 108 "line": 51, 109 "column": 8, 110 "endLine": 51, 111 "endColumn": 9, 112 "problem": "ObjectLiteralNoContextType", 113 "suggest": "", 114 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 115 "severity": "ERROR" 116 }, 117 { 118 "line": 54, 119 "column": 8, 120 "endLine": 54, 121 "endColumn": 9, 122 "problem": "ObjectLiteralNoContextType", 123 "suggest": "", 124 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 125 "severity": "ERROR" 126 }, 127 { 128 "line": 56, 129 "column": 8, 130 "endLine": 56, 131 "endColumn": 9, 132 "problem": "ObjectLiteralNoContextType", 133 "suggest": "", 134 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 135 "severity": "ERROR" 136 }, 137 { 138 "line": 64, 139 "column": 3, 140 "endLine": 64, 141 "endColumn": 11, 142 "problem": "LocalFunction", 143 "suggest": "", 144 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 145 "severity": "ERROR" 146 }, 147 { 148 "line": 64, 149 "column": 20, 150 "endLine": 64, 151 "endColumn": 21, 152 "problem": "ObjectLiteralNoContextType", 153 "suggest": "", 154 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 155 "severity": "ERROR" 156 }, 157 { 158 "line": 67, 159 "column": 3, 160 "endLine": 67, 161 "endColumn": 11, 162 "problem": "LocalFunction", 163 "suggest": "", 164 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 165 "severity": "ERROR" 166 }, 167 { 168 "line": 67, 169 "column": 20, 170 "endLine": 67, 171 "endColumn": 23, 172 "problem": "AnyType", 173 "suggest": "", 174 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)", 175 "severity": "ERROR" 176 }, 177 { 178 "line": 70, 179 "column": 3, 180 "endLine": 70, 181 "endColumn": 11, 182 "problem": "LocalFunction", 183 "suggest": "", 184 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 185 "severity": "ERROR" 186 }, 187 { 188 "line": 70, 189 "column": 20, 190 "endLine": 70, 191 "endColumn": 21, 192 "problem": "ObjectTypeLiteral", 193 "suggest": "", 194 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)", 195 "severity": "ERROR" 196 }, 197 { 198 "line": 70, 199 "column": 47, 200 "endLine": 70, 201 "endColumn": 48, 202 "problem": "ObjectLiteralNoContextType", 203 "suggest": "", 204 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 205 "severity": "ERROR" 206 }, 207 { 208 "line": 73, 209 "column": 3, 210 "endLine": 73, 211 "endColumn": 11, 212 "problem": "LocalFunction", 213 "suggest": "", 214 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 215 "severity": "ERROR" 216 }, 217 { 218 "line": 76, 219 "column": 3, 220 "endLine": 76, 221 "endColumn": 11, 222 "problem": "LocalFunction", 223 "suggest": "", 224 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 225 "severity": "ERROR" 226 }, 227 { 228 "line": 81, 229 "column": 7, 230 "endLine": 81, 231 "endColumn": 8, 232 "problem": "ObjectLiteralNoContextType", 233 "suggest": "", 234 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 235 "severity": "ERROR" 236 }, 237 { 238 "line": 83, 239 "column": 8, 240 "endLine": 83, 241 "endColumn": 9, 242 "problem": "ObjectLiteralNoContextType", 243 "suggest": "", 244 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 245 "severity": "ERROR" 246 }, 247 { 248 "line": 89, 249 "column": 3, 250 "endLine": 89, 251 "endColumn": 11, 252 "problem": "LocalFunction", 253 "suggest": "", 254 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 255 "severity": "ERROR" 256 }, 257 { 258 "line": 90, 259 "column": 12, 260 "endLine": 90, 261 "endColumn": 13, 262 "problem": "ObjectLiteralNoContextType", 263 "suggest": "", 264 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 265 "severity": "ERROR" 266 }, 267 { 268 "line": 92, 269 "column": 3, 270 "endLine": 92, 271 "endColumn": 11, 272 "problem": "LocalFunction", 273 "suggest": "", 274 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 275 "severity": "ERROR" 276 }, 277 { 278 "line": 92, 279 "column": 20, 280 "endLine": 92, 281 "endColumn": 23, 282 "problem": "AnyType", 283 "suggest": "", 284 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)", 285 "severity": "ERROR" 286 }, 287 { 288 "line": 95, 289 "column": 3, 290 "endLine": 95, 291 "endColumn": 11, 292 "problem": "LocalFunction", 293 "suggest": "", 294 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 295 "severity": "ERROR" 296 }, 297 { 298 "line": 95, 299 "column": 20, 300 "endLine": 95, 301 "endColumn": 21, 302 "problem": "ObjectTypeLiteral", 303 "suggest": "", 304 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)", 305 "severity": "ERROR" 306 }, 307 { 308 "line": 96, 309 "column": 12, 310 "endLine": 96, 311 "endColumn": 13, 312 "problem": "ObjectLiteralNoContextType", 313 "suggest": "", 314 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 315 "severity": "ERROR" 316 }, 317 { 318 "line": 98, 319 "column": 3, 320 "endLine": 98, 321 "endColumn": 11, 322 "problem": "LocalFunction", 323 "suggest": "", 324 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 325 "severity": "ERROR" 326 }, 327 { 328 "line": 101, 329 "column": 3, 330 "endLine": 101, 331 "endColumn": 11, 332 "problem": "LocalFunction", 333 "suggest": "", 334 "rule": "Nested functions are not supported (arkts-no-nested-funcs)", 335 "severity": "ERROR" 336 }, 337 { 338 "line": 109, 339 "column": 26, 340 "endLine": 109, 341 "endColumn": 27, 342 "problem": "ObjectLiteralNoContextType", 343 "suggest": "", 344 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 345 "severity": "ERROR" 346 }, 347 { 348 "line": 109, 349 "column": 46, 350 "endLine": 109, 351 "endColumn": 47, 352 "problem": "ObjectLiteralNoContextType", 353 "suggest": "", 354 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 355 "severity": "ERROR" 356 }, 357 { 358 "line": 110, 359 "column": 13, 360 "endLine": 110, 361 "endColumn": 16, 362 "problem": "AnyType", 363 "suggest": "", 364 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)", 365 "severity": "ERROR" 366 }, 367 { 368 "line": 111, 369 "column": 13, 370 "endLine": 111, 371 "endColumn": 14, 372 "problem": "ObjectTypeLiteral", 373 "suggest": "", 374 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)", 375 "severity": "ERROR" 376 }, 377 { 378 "line": 112, 379 "column": 7, 380 "endLine": 112, 381 "endColumn": 8, 382 "problem": "ObjectLiteralNoContextType", 383 "suggest": "", 384 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 385 "severity": "ERROR" 386 }, 387 { 388 "line": 113, 389 "column": 7, 390 "endLine": 113, 391 "endColumn": 8, 392 "problem": "ObjectLiteralNoContextType", 393 "suggest": "", 394 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 395 "severity": "ERROR" 396 }, 397 { 398 "line": 119, 399 "column": 16, 400 "endLine": 122, 401 "endColumn": 4, 402 "problem": "ArrayLiteralNoContextType", 403 "suggest": "", 404 "rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals)", 405 "severity": "ERROR" 406 }, 407 { 408 "line": 120, 409 "column": 5, 410 "endLine": 120, 411 "endColumn": 6, 412 "problem": "ObjectLiteralNoContextType", 413 "suggest": "", 414 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 415 "severity": "ERROR" 416 }, 417 { 418 "line": 121, 419 "column": 5, 420 "endLine": 121, 421 "endColumn": 6, 422 "problem": "ObjectLiteralNoContextType", 423 "suggest": "", 424 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 425 "severity": "ERROR" 426 }, 427 { 428 "line": 123, 429 "column": 15, 430 "endLine": 123, 431 "endColumn": 18, 432 "problem": "AnyType", 433 "suggest": "", 434 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)", 435 "severity": "ERROR" 436 }, 437 { 438 "line": 127, 439 "column": 15, 440 "endLine": 127, 441 "endColumn": 16, 442 "problem": "ObjectTypeLiteral", 443 "suggest": "", 444 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)", 445 "severity": "ERROR" 446 }, 447 { 448 "line": 127, 449 "column": 44, 450 "endLine": 130, 451 "endColumn": 4, 452 "problem": "ArrayLiteralNoContextType", 453 "suggest": "", 454 "rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals)", 455 "severity": "ERROR" 456 }, 457 { 458 "line": 128, 459 "column": 5, 460 "endLine": 128, 461 "endColumn": 6, 462 "problem": "ObjectLiteralNoContextType", 463 "suggest": "", 464 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 465 "severity": "ERROR" 466 }, 467 { 468 "line": 129, 469 "column": 5, 470 "endLine": 129, 471 "endColumn": 6, 472 "problem": "ObjectLiteralNoContextType", 473 "suggest": "", 474 "rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)", 475 "severity": "ERROR" 476 }, 477 { 478 "line": 22, 479 "column": 3, 480 "endLine": 22, 481 "endColumn": 4, 482 "problem": "StrictDiagnostic", 483 "suggest": "Property 'a' has no initializer and is not definitely assigned in the constructor.", 484 "rule": "Property 'a' has no initializer and is not definitely assigned in the constructor.", 485 "severity": "ERROR" 486 }, 487 { 488 "line": 23, 489 "column": 3, 490 "endLine": 23, 491 "endColumn": 4, 492 "problem": "StrictDiagnostic", 493 "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.", 494 "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor.", 495 "severity": "ERROR" 496 }, 497 { 498 "line": 27, 499 "column": 3, 500 "endLine": 27, 501 "endColumn": 4, 502 "problem": "StrictDiagnostic", 503 "suggest": "Property 'q' has no initializer and is not definitely assigned in the constructor.", 504 "rule": "Property 'q' has no initializer and is not definitely assigned in the constructor.", 505 "severity": "ERROR" 506 }, 507 { 508 "line": 29, 509 "column": 3, 510 "endLine": 29, 511 "endColumn": 4, 512 "problem": "StrictDiagnostic", 513 "suggest": "Property 'e' has no initializer and is not definitely assigned in the constructor.", 514 "rule": "Property 'e' has no initializer and is not definitely assigned in the constructor.", 515 "severity": "ERROR" 516 }, 517 { 518 "line": 30, 519 "column": 3, 520 "endLine": 30, 521 "endColumn": 4, 522 "problem": "StrictDiagnostic", 523 "suggest": "Property 'r' has no initializer and is not definitely assigned in the constructor.", 524 "rule": "Property 'r' has no initializer and is not definitely assigned in the constructor.", 525 "severity": "ERROR" 526 } 527 ] 528}