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": 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 "line": 20, 29 "column": 5, 30 "endLine": 20, 31 "endColumn": 12 32 }, 33 { 34 "start": 639, 35 "end": 664, 36 "replacementText": "x: number", 37 "line": 20, 38 "column": 5, 39 "endLine": 20, 40 "endColumn": 12 41 }, 42 { 43 "start": 670, 44 "end": 689, 45 "replacementText": "y: number", 46 "line": 20, 47 "column": 5, 48 "endLine": 20, 49 "endColumn": 12 50 }, 51 { 52 "start": 695, 53 "end": 712, 54 "replacementText": "z: number", 55 "line": 20, 56 "column": 5, 57 "endLine": 20, 58 "endColumn": 12 59 }, 60 { 61 "start": 717, 62 "end": 719, 63 "replacementText": "{\n this.x = x;\n this.y = y;\n this.z = z;\n}", 64 "line": 20, 65 "column": 5, 66 "endLine": 20, 67 "endColumn": 12 68 } 69 ], 70 "suggest": "", 71 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 72 "severity": "ERROR" 73 }, 74 { 75 "line": 19, 76 "column": 5, 77 "endLine": 19, 78 "endColumn": 14, 79 "problem": "ParameterProperties", 80 "autofix": [ 81 { 82 "start": 622, 83 "end": 622, 84 "replacementText": "public readonly x: number;\nprotected y: number;\nprivate z: number;\n", 85 "line": 20, 86 "column": 5, 87 "endLine": 20, 88 "endColumn": 12 89 }, 90 { 91 "start": 639, 92 "end": 664, 93 "replacementText": "x: number", 94 "line": 20, 95 "column": 5, 96 "endLine": 20, 97 "endColumn": 12 98 }, 99 { 100 "start": 670, 101 "end": 689, 102 "replacementText": "y: number", 103 "line": 20, 104 "column": 5, 105 "endLine": 20, 106 "endColumn": 12 107 }, 108 { 109 "start": 695, 110 "end": 712, 111 "replacementText": "z: number", 112 "line": 20, 113 "column": 5, 114 "endLine": 20, 115 "endColumn": 12 116 }, 117 { 118 "start": 717, 119 "end": 719, 120 "replacementText": "{\n this.x = x;\n this.y = y;\n this.z = z;\n}", 121 "line": 20, 122 "column": 5, 123 "endLine": 20, 124 "endColumn": 12 125 } 126 ], 127 "suggest": "", 128 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 129 "severity": "ERROR" 130 }, 131 { 132 "line": 20, 133 "column": 5, 134 "endLine": 20, 135 "endColumn": 12, 136 "problem": "ParameterProperties", 137 "autofix": [ 138 { 139 "start": 622, 140 "end": 622, 141 "replacementText": "public readonly x: number;\nprotected y: number;\nprivate z: number;\n", 142 "line": 20, 143 "column": 5, 144 "endLine": 20, 145 "endColumn": 12 146 }, 147 { 148 "start": 639, 149 "end": 664, 150 "replacementText": "x: number", 151 "line": 20, 152 "column": 5, 153 "endLine": 20, 154 "endColumn": 12 155 }, 156 { 157 "start": 670, 158 "end": 689, 159 "replacementText": "y: number", 160 "line": 20, 161 "column": 5, 162 "endLine": 20, 163 "endColumn": 12 164 }, 165 { 166 "start": 695, 167 "end": 712, 168 "replacementText": "z: number", 169 "line": 20, 170 "column": 5, 171 "endLine": 20, 172 "endColumn": 12 173 }, 174 { 175 "start": 717, 176 "end": 719, 177 "replacementText": "{\n this.x = x;\n this.y = y;\n this.z = z;\n}", 178 "line": 20, 179 "column": 5, 180 "endLine": 20, 181 "endColumn": 12 182 } 183 ], 184 "suggest": "", 185 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 186 "severity": "ERROR" 187 }, 188 { 189 "line": 28, 190 "column": 17, 191 "endLine": 28, 192 "endColumn": 18, 193 "problem": "NumericSemantics", 194 "autofix": [ 195 { 196 "start": 803, 197 "end": 804, 198 "replacementText": "1.0", 199 "line": 28, 200 "column": 17, 201 "endLine": 28, 202 "endColumn": 18 203 } 204 ], 205 "suggest": "", 206 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 207 "severity": "ERROR" 208 }, 209 { 210 "line": 28, 211 "column": 20, 212 "endLine": 28, 213 "endColumn": 21, 214 "problem": "NumericSemantics", 215 "autofix": [ 216 { 217 "start": 806, 218 "end": 807, 219 "replacementText": "2.0", 220 "line": 28, 221 "column": 20, 222 "endLine": 28, 223 "endColumn": 21 224 } 225 ], 226 "suggest": "", 227 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 228 "severity": "ERROR" 229 }, 230 { 231 "line": 28, 232 "column": 23, 233 "endLine": 28, 234 "endColumn": 24, 235 "problem": "NumericSemantics", 236 "autofix": [ 237 { 238 "start": 809, 239 "end": 810, 240 "replacementText": "3.0", 241 "line": 28, 242 "column": 23, 243 "endLine": 28, 244 "endColumn": 24 245 } 246 ], 247 "suggest": "", 248 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 249 "severity": "ERROR" 250 }, 251 { 252 "line": 32, 253 "column": 22, 254 "endLine": 32, 255 "endColumn": 24, 256 "problem": "NumericSemantics", 257 "autofix": [ 258 { 259 "start": 863, 260 "end": 865, 261 "replacementText": "10.0", 262 "line": 32, 263 "column": 22, 264 "endLine": 32, 265 "endColumn": 24 266 } 267 ], 268 "suggest": "", 269 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 270 "severity": "ERROR" 271 }, 272 { 273 "line": 34, 274 "column": 33, 275 "endLine": 34, 276 "endColumn": 34, 277 "problem": "DefaultArgsBehindRequiredArgs", 278 "suggest": "", 279 "rule": "Default parameters must be placed after mandatory parameters (arkts-default-args-behind-required-args)", 280 "severity": "ERROR" 281 }, 282 { 283 "line": 34, 284 "column": 26, 285 "endLine": 34, 286 "endColumn": 32, 287 "problem": "ParameterProperties", 288 "autofix": [ 289 { 290 "start": 870, 291 "end": 870, 292 "replacementText": "public w: string;\nprivate readonly r: number[];\n", 293 "line": 34, 294 "column": 60, 295 "endLine": 34, 296 "endColumn": 67 297 }, 298 { 299 "start": 893, 300 "end": 913, 301 "replacementText": "w = 'default'", 302 "line": 34, 303 "column": 60, 304 "endLine": 34, 305 "endColumn": 67 306 }, 307 { 308 "start": 927, 309 "end": 967, 310 "replacementText": "r: number[] = [1, 2, 3]", 311 "line": 34, 312 "column": 60, 313 "endLine": 34, 314 "endColumn": 67 315 }, 316 { 317 "start": 969, 318 "end": 1021, 319 "replacementText": "{\n this.w = w;\n this.r = r;\n console.log(q, this.w, e, this.r, this.f);\n}", 320 "line": 34, 321 "column": 60, 322 "endLine": 34, 323 "endColumn": 67 324 } 325 ], 326 "suggest": "", 327 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 328 "severity": "ERROR" 329 }, 330 { 331 "line": 34, 332 "column": 60, 333 "endLine": 34, 334 "endColumn": 67, 335 "problem": "ParameterProperties", 336 "autofix": [ 337 { 338 "start": 870, 339 "end": 870, 340 "replacementText": "public w: string;\nprivate readonly r: number[];\n", 341 "line": 34, 342 "column": 60, 343 "endLine": 34, 344 "endColumn": 67 345 }, 346 { 347 "start": 893, 348 "end": 913, 349 "replacementText": "w = 'default'", 350 "line": 34, 351 "column": 60, 352 "endLine": 34, 353 "endColumn": 67 354 }, 355 { 356 "start": 927, 357 "end": 967, 358 "replacementText": "r: number[] = [1, 2, 3]", 359 "line": 34, 360 "column": 60, 361 "endLine": 34, 362 "endColumn": 67 363 }, 364 { 365 "start": 969, 366 "end": 1021, 367 "replacementText": "{\n this.w = w;\n this.r = r;\n console.log(q, this.w, e, this.r, this.f);\n}", 368 "line": 34, 369 "column": 60, 370 "endLine": 34, 371 "endColumn": 67 372 } 373 ], 374 "suggest": "", 375 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 376 "severity": "ERROR" 377 }, 378 { 379 "line": 34, 380 "column": 92, 381 "endLine": 34, 382 "endColumn": 93, 383 "problem": "NumericSemantics", 384 "autofix": [ 385 { 386 "start": 959, 387 "end": 960, 388 "replacementText": "1.0", 389 "line": 34, 390 "column": 92, 391 "endLine": 34, 392 "endColumn": 93 393 } 394 ], 395 "suggest": "", 396 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 397 "severity": "ERROR" 398 }, 399 { 400 "line": 34, 401 "column": 95, 402 "endLine": 34, 403 "endColumn": 96, 404 "problem": "NumericSemantics", 405 "autofix": [ 406 { 407 "start": 962, 408 "end": 963, 409 "replacementText": "2.0", 410 "line": 34, 411 "column": 95, 412 "endLine": 34, 413 "endColumn": 96 414 } 415 ], 416 "suggest": "", 417 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 418 "severity": "ERROR" 419 }, 420 { 421 "line": 34, 422 "column": 98, 423 "endLine": 34, 424 "endColumn": 99, 425 "problem": "NumericSemantics", 426 "autofix": [ 427 { 428 "start": 965, 429 "end": 966, 430 "replacementText": "3.0", 431 "line": 34, 432 "column": 98, 433 "endLine": 34, 434 "endColumn": 99 435 } 436 ], 437 "suggest": "", 438 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 439 "severity": "ERROR" 440 }, 441 { 442 "line": 39, 443 "column": 17, 444 "endLine": 39, 445 "endColumn": 18, 446 "problem": "NumericSemantics", 447 "autofix": [ 448 { 449 "start": 1041, 450 "end": 1042, 451 "replacementText": "1.0", 452 "line": 39, 453 "column": 17, 454 "endLine": 39, 455 "endColumn": 18 456 } 457 ], 458 "suggest": "", 459 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 460 "severity": "ERROR" 461 }, 462 { 463 "line": 43, 464 "column": 15, 465 "endLine": 43, 466 "endColumn": 21, 467 "problem": "ParameterProperties", 468 "suggest": "", 469 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 470 "severity": "ERROR" 471 }, 472 { 473 "line": 43, 474 "column": 25, 475 "endLine": 43, 476 "endColumn": 28, 477 "problem": "AnyType", 478 "suggest": "", 479 "rule": "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)", 480 "severity": "ERROR" 481 }, 482 { 483 "line": 47, 484 "column": 15, 485 "endLine": 47, 486 "endColumn": 21, 487 "problem": "ParameterProperties", 488 "suggest": "", 489 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 490 "severity": "ERROR" 491 }, 492 { 493 "line": 47, 494 "column": 33, 495 "endLine": 47, 496 "endColumn": 40, 497 "problem": "ParameterProperties", 498 "suggest": "", 499 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 500 "severity": "ERROR" 501 }, 502 { 503 "line": 47, 504 "column": 44, 505 "endLine": 47, 506 "endColumn": 45, 507 "problem": "ObjectTypeLiteral", 508 "autofix": [ 509 { 510 "start": 1139, 511 "end": 1139, 512 "replacementText": "interface GeneratedTypeLiteralInterface_1 {\n x: string;\n}\n", 513 "line": 47, 514 "column": 44, 515 "endLine": 47, 516 "endColumn": 45 517 }, 518 { 519 "start": 1192, 520 "end": 1203, 521 "replacementText": "GeneratedTypeLiteralInterface_1", 522 "line": 47, 523 "column": 44, 524 "endLine": 47, 525 "endColumn": 45 526 } 527 ], 528 "suggest": "", 529 "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)", 530 "severity": "ERROR" 531 }, 532 { 533 "line": 51, 534 "column": 15, 535 "endLine": 51, 536 "endColumn": 16, 537 "problem": "NumericSemantics", 538 "autofix": [ 539 { 540 "start": 1250, 541 "end": 1251, 542 "replacementText": "0.0", 543 "line": 51, 544 "column": 15, 545 "endLine": 51, 546 "endColumn": 16 547 } 548 ], 549 "suggest": "", 550 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 551 "severity": "ERROR" 552 }, 553 { 554 "line": 52, 555 "column": 15, 556 "endLine": 52, 557 "endColumn": 16, 558 "problem": "NumericSemantics", 559 "autofix": [ 560 { 561 "start": 1267, 562 "end": 1268, 563 "replacementText": "0.0", 564 "line": 52, 565 "column": 15, 566 "endLine": 52, 567 "endColumn": 16 568 } 569 ], 570 "suggest": "", 571 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 572 "severity": "ERROR" 573 }, 574 { 575 "line": 54, 576 "column": 15, 577 "endLine": 54, 578 "endColumn": 33, 579 "problem": "ParameterProperties", 580 "autofix": [ 581 { 582 "start": 1275, 583 "end": 1275, 584 "replacementText": "readonly a: number;\n", 585 "line": 54, 586 "column": 15, 587 "endLine": 54, 588 "endColumn": 33 589 }, 590 { 591 "start": 1287, 592 "end": 1305, 593 "replacementText": "a: number", 594 "line": 54, 595 "column": 15, 596 "endLine": 54, 597 "endColumn": 33 598 }, 599 { 600 "start": 1307, 601 "end": 1309, 602 "replacementText": "{\n this.a = a;\n}", 603 "line": 54, 604 "column": 15, 605 "endLine": 54, 606 "endColumn": 33 607 } 608 ], 609 "suggest": "", 610 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 611 "severity": "ERROR" 612 }, 613 { 614 "line": 59, 615 "column": 5, 616 "endLine": 59, 617 "endColumn": 24, 618 "problem": "ParameterProperties", 619 "autofix": [ 620 { 621 "start": 1335, 622 "end": 1335, 623 "replacementText": "readonly aa: number;\nb: number;\npublic c: number;\n", 624 "line": 61, 625 "column": 5, 626 "endLine": 61, 627 "endColumn": 11 628 }, 629 { 630 "start": 1352, 631 "end": 1371, 632 "replacementText": "aa: number", 633 "line": 61, 634 "column": 5, 635 "endLine": 61, 636 "endColumn": 11 637 }, 638 { 639 "start": 1377, 640 "end": 1395, 641 "replacementText": "b: number", 642 "line": 61, 643 "column": 5, 644 "endLine": 61, 645 "endColumn": 11 646 }, 647 { 648 "start": 1401, 649 "end": 1426, 650 "replacementText": "c: number", 651 "line": 61, 652 "column": 5, 653 "endLine": 61, 654 "endColumn": 11 655 }, 656 { 657 "start": 1430, 658 "end": 1450, 659 "replacementText": "{\n super(aa);\n this.aa = aa;\n this.b = b;\n this.c = c;\n}", 660 "line": 61, 661 "column": 5, 662 "endLine": 61, 663 "endColumn": 11 664 } 665 ], 666 "suggest": "", 667 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 668 "severity": "ERROR" 669 }, 670 { 671 "line": 60, 672 "column": 5, 673 "endLine": 60, 674 "endColumn": 23, 675 "problem": "ParameterProperties", 676 "autofix": [ 677 { 678 "start": 1335, 679 "end": 1335, 680 "replacementText": "readonly aa: number;\nb: number;\npublic c: number;\n", 681 "line": 61, 682 "column": 5, 683 "endLine": 61, 684 "endColumn": 11 685 }, 686 { 687 "start": 1352, 688 "end": 1371, 689 "replacementText": "aa: number", 690 "line": 61, 691 "column": 5, 692 "endLine": 61, 693 "endColumn": 11 694 }, 695 { 696 "start": 1377, 697 "end": 1395, 698 "replacementText": "b: number", 699 "line": 61, 700 "column": 5, 701 "endLine": 61, 702 "endColumn": 11 703 }, 704 { 705 "start": 1401, 706 "end": 1426, 707 "replacementText": "c: number", 708 "line": 61, 709 "column": 5, 710 "endLine": 61, 711 "endColumn": 11 712 }, 713 { 714 "start": 1430, 715 "end": 1450, 716 "replacementText": "{\n super(aa);\n this.aa = aa;\n this.b = b;\n this.c = c;\n}", 717 "line": 61, 718 "column": 5, 719 "endLine": 61, 720 "endColumn": 11 721 } 722 ], 723 "suggest": "", 724 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 725 "severity": "ERROR" 726 }, 727 { 728 "line": 61, 729 "column": 5, 730 "endLine": 61, 731 "endColumn": 11, 732 "problem": "ParameterProperties", 733 "autofix": [ 734 { 735 "start": 1335, 736 "end": 1335, 737 "replacementText": "readonly aa: number;\nb: number;\npublic c: number;\n", 738 "line": 61, 739 "column": 5, 740 "endLine": 61, 741 "endColumn": 11 742 }, 743 { 744 "start": 1352, 745 "end": 1371, 746 "replacementText": "aa: number", 747 "line": 61, 748 "column": 5, 749 "endLine": 61, 750 "endColumn": 11 751 }, 752 { 753 "start": 1377, 754 "end": 1395, 755 "replacementText": "b: number", 756 "line": 61, 757 "column": 5, 758 "endLine": 61, 759 "endColumn": 11 760 }, 761 { 762 "start": 1401, 763 "end": 1426, 764 "replacementText": "c: number", 765 "line": 61, 766 "column": 5, 767 "endLine": 61, 768 "endColumn": 11 769 }, 770 { 771 "start": 1430, 772 "end": 1450, 773 "replacementText": "{\n super(aa);\n this.aa = aa;\n this.b = b;\n this.c = c;\n}", 774 "line": 61, 775 "column": 5, 776 "endLine": 61, 777 "endColumn": 11 778 } 779 ], 780 "suggest": "", 781 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 782 "severity": "ERROR" 783 }, 784 { 785 "line": 68, 786 "column": 15, 787 "endLine": 68, 788 "endColumn": 34, 789 "problem": "ParameterProperties", 790 "autofix": [ 791 { 792 "start": 1477, 793 "end": 1477, 794 "replacementText": "readonly aa: number;\n", 795 "line": 68, 796 "column": 15, 797 "endLine": 68, 798 "endColumn": 34 799 }, 800 { 801 "start": 1489, 802 "end": 1508, 803 "replacementText": "aa: number", 804 "line": 68, 805 "column": 15, 806 "endLine": 68, 807 "endColumn": 34 808 }, 809 { 810 "start": 1510, 811 "end": 1594, 812 "replacementText": "{\n let f2: number = 1;\n console.log('before super() call');\n super(aa);\n this.aa = aa;\n}", 813 "line": 68, 814 "column": 15, 815 "endLine": 68, 816 "endColumn": 34 817 } 818 ], 819 "suggest": "", 820 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 821 "severity": "ERROR" 822 }, 823 { 824 "line": 69, 825 "column": 22, 826 "endLine": 69, 827 "endColumn": 23, 828 "problem": "NumericSemantics", 829 "autofix": [ 830 { 831 "start": 1533, 832 "end": 1534, 833 "replacementText": "1.0", 834 "line": 69, 835 "column": 22, 836 "endLine": 69, 837 "endColumn": 23 838 } 839 ], 840 "suggest": "", 841 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 842 "severity": "ERROR" 843 }, 844 { 845 "line": 76, 846 "column": 15, 847 "endLine": 76, 848 "endColumn": 34, 849 "problem": "ParameterProperties", 850 "autofix": [ 851 { 852 "start": 1621, 853 "end": 1621, 854 "replacementText": "readonly aa: number;\n", 855 "line": 76, 856 "column": 15, 857 "endLine": 76, 858 "endColumn": 34 859 }, 860 { 861 "start": 1633, 862 "end": 1652, 863 "replacementText": "aa: number", 864 "line": 76, 865 "column": 15, 866 "endLine": 76, 867 "endColumn": 34 868 }, 869 { 870 "start": 1654, 871 "end": 1737, 872 "replacementText": "{\n super(aa);\n this.aa = aa;\n let f3: number = 1;\n console.log('after super() call');\n}", 873 "line": 76, 874 "column": 15, 875 "endLine": 76, 876 "endColumn": 34 877 } 878 ], 879 "suggest": "", 880 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 881 "severity": "ERROR" 882 }, 883 { 884 "line": 78, 885 "column": 22, 886 "endLine": 78, 887 "endColumn": 23, 888 "problem": "NumericSemantics", 889 "autofix": [ 890 { 891 "start": 1692, 892 "end": 1693, 893 "replacementText": "1.0", 894 "line": 78, 895 "column": 22, 896 "endLine": 78, 897 "endColumn": 23 898 } 899 ], 900 "suggest": "", 901 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 902 "severity": "ERROR" 903 }, 904 { 905 "line": 84, 906 "column": 15, 907 "endLine": 84, 908 "endColumn": 34, 909 "problem": "ParameterProperties", 910 "autofix": [ 911 { 912 "start": 1764, 913 "end": 1764, 914 "replacementText": "readonly aa: number;\n", 915 "line": 84, 916 "column": 15, 917 "endLine": 84, 918 "endColumn": 34 919 }, 920 { 921 "start": 1776, 922 "end": 1795, 923 "replacementText": "aa: number", 924 "line": 84, 925 "column": 15, 926 "endLine": 84, 927 "endColumn": 34 928 }, 929 { 930 "start": 1797, 931 "end": 1944, 932 "replacementText": "{\n let f4: number = 1;\n console.log('before super() call');\n super(aa);\n this.aa = aa;\n console.log('after super() call');\n let f5: number = 1;\n}", 933 "line": 84, 934 "column": 15, 935 "endLine": 84, 936 "endColumn": 34 937 } 938 ], 939 "suggest": "", 940 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 941 "severity": "ERROR" 942 }, 943 { 944 "line": 85, 945 "column": 22, 946 "endLine": 85, 947 "endColumn": 23, 948 "problem": "NumericSemantics", 949 "autofix": [ 950 { 951 "start": 1820, 952 "end": 1821, 953 "replacementText": "1.0", 954 "line": 85, 955 "column": 22, 956 "endLine": 85, 957 "endColumn": 23 958 } 959 ], 960 "suggest": "", 961 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 962 "severity": "ERROR" 963 }, 964 { 965 "line": 89, 966 "column": 22, 967 "endLine": 89, 968 "endColumn": 23, 969 "problem": "NumericSemantics", 970 "autofix": [ 971 { 972 "start": 1938, 973 "end": 1939, 974 "replacementText": "1.0", 975 "line": 89, 976 "column": 22, 977 "endLine": 89, 978 "endColumn": 23 979 } 980 ], 981 "suggest": "", 982 "rule": "Numeric semantics is different for integer values (arkts-numeric-semantic)", 983 "severity": "ERROR" 984 }, 985 { 986 "line": 98, 987 "column": 15, 988 "endLine": 98, 989 "endColumn": 21, 990 "problem": "ParameterProperties", 991 "autofix": [ 992 { 993 "start": 2003, 994 "end": 2003, 995 "replacementText": "public a?: number;\npublic b: number;\n", 996 "line": 98, 997 "column": 34, 998 "endLine": 98, 999 "endColumn": 40 1000 }, 1001 { 1002 "start": 2015, 1003 "end": 2032, 1004 "replacementText": "a?: number", 1005 "line": 98, 1006 "column": 34, 1007 "endLine": 98, 1008 "endColumn": 40 1009 }, 1010 { 1011 "start": 2034, 1012 "end": 2050, 1013 "replacementText": "b: number", 1014 "line": 98, 1015 "column": 34, 1016 "endLine": 98, 1017 "endColumn": 40 1018 }, 1019 { 1020 "start": 2052, 1021 "end": 2054, 1022 "replacementText": "{\n this.a = a;\n this.b = b;\n}", 1023 "line": 98, 1024 "column": 34, 1025 "endLine": 98, 1026 "endColumn": 40 1027 } 1028 ], 1029 "suggest": "", 1030 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 1031 "severity": "ERROR" 1032 }, 1033 { 1034 "line": 98, 1035 "column": 34, 1036 "endLine": 98, 1037 "endColumn": 40, 1038 "problem": "ParameterProperties", 1039 "autofix": [ 1040 { 1041 "start": 2003, 1042 "end": 2003, 1043 "replacementText": "public a?: number;\npublic b: number;\n", 1044 "line": 98, 1045 "column": 34, 1046 "endLine": 98, 1047 "endColumn": 40 1048 }, 1049 { 1050 "start": 2015, 1051 "end": 2032, 1052 "replacementText": "a?: number", 1053 "line": 98, 1054 "column": 34, 1055 "endLine": 98, 1056 "endColumn": 40 1057 }, 1058 { 1059 "start": 2034, 1060 "end": 2050, 1061 "replacementText": "b: number", 1062 "line": 98, 1063 "column": 34, 1064 "endLine": 98, 1065 "endColumn": 40 1066 }, 1067 { 1068 "start": 2052, 1069 "end": 2054, 1070 "replacementText": "{\n this.a = a;\n this.b = b;\n}", 1071 "line": 98, 1072 "column": 34, 1073 "endLine": 98, 1074 "endColumn": 40 1075 } 1076 ], 1077 "suggest": "", 1078 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 1079 "severity": "ERROR" 1080 }, 1081 { 1082 "line": 102, 1083 "column": 15, 1084 "endLine": 102, 1085 "endColumn": 21, 1086 "problem": "ParameterProperties", 1087 "autofix": [ 1088 { 1089 "start": 2071, 1090 "end": 2071, 1091 "replacementText": "public a?: number;\npublic b?: number;\n", 1092 "line": 102, 1093 "column": 34, 1094 "endLine": 102, 1095 "endColumn": 40 1096 }, 1097 { 1098 "start": 2083, 1099 "end": 2100, 1100 "replacementText": "a?: number", 1101 "line": 102, 1102 "column": 34, 1103 "endLine": 102, 1104 "endColumn": 40 1105 }, 1106 { 1107 "start": 2102, 1108 "end": 2119, 1109 "replacementText": "b?: number", 1110 "line": 102, 1111 "column": 34, 1112 "endLine": 102, 1113 "endColumn": 40 1114 }, 1115 { 1116 "start": 2121, 1117 "end": 2123, 1118 "replacementText": "{\n this.a = a;\n this.b = b;\n}", 1119 "line": 102, 1120 "column": 34, 1121 "endLine": 102, 1122 "endColumn": 40 1123 } 1124 ], 1125 "suggest": "", 1126 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 1127 "severity": "ERROR" 1128 }, 1129 { 1130 "line": 102, 1131 "column": 34, 1132 "endLine": 102, 1133 "endColumn": 40, 1134 "problem": "ParameterProperties", 1135 "autofix": [ 1136 { 1137 "start": 2071, 1138 "end": 2071, 1139 "replacementText": "public a?: number;\npublic b?: number;\n", 1140 "line": 102, 1141 "column": 34, 1142 "endLine": 102, 1143 "endColumn": 40 1144 }, 1145 { 1146 "start": 2083, 1147 "end": 2100, 1148 "replacementText": "a?: number", 1149 "line": 102, 1150 "column": 34, 1151 "endLine": 102, 1152 "endColumn": 40 1153 }, 1154 { 1155 "start": 2102, 1156 "end": 2119, 1157 "replacementText": "b?: number", 1158 "line": 102, 1159 "column": 34, 1160 "endLine": 102, 1161 "endColumn": 40 1162 }, 1163 { 1164 "start": 2121, 1165 "end": 2123, 1166 "replacementText": "{\n this.a = a;\n this.b = b;\n}", 1167 "line": 102, 1168 "column": 34, 1169 "endLine": 102, 1170 "endColumn": 40 1171 } 1172 ], 1173 "suggest": "", 1174 "rule": "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)", 1175 "severity": "ERROR" 1176 } 1177 ] 1178}