24
24
# issue created for it.
25
25
#
26
26
# Stats:
27
- # - 698 "needsEvaluation"
27
+ # - 655 "needsEvaluation"
28
28
# - 282 for CompileTimeErrorCodes
29
29
# - 220 for ParserErrorCodes
30
- # - 73 "needsFix"
30
+ # - 92 "needsFix"
31
31
# - 310 "hasFix"
32
- # - 64 "noFix"
32
+ # - 94 "noFix"
33
33
34
34
AnalysisOptionsErrorCode.INCLUDED_FILE_PARSE_ERROR :
35
35
status : noFix
@@ -54,7 +54,7 @@ AnalysisOptionsWarningCode.INCLUDE_FILE_NOT_FOUND:
54
54
notes : |-
55
55
It would not be performant to search the disk for analysis options files
56
56
that could be included.
57
-
57
+
58
58
We could potentially have a fix to create the referenced file that currently
59
59
doesn't exist, but that would only be useful if the missing file is in the
60
60
same repository as the including file.
@@ -1328,9 +1328,9 @@ HintCode.BODY_MIGHT_COMPLETE_NORMALLY_NULLABLE:
1328
1328
HintCode.CAN_BE_NULL_AFTER_NULL_AWARE :
1329
1329
status : hasFix
1330
1330
HintCode.CAST_FROM_NULL_ALWAYS_FAILS :
1331
- status : needsEvaluation
1331
+ status : noFix
1332
1332
HintCode.CAST_FROM_NULLABLE_ALWAYS_FAILS :
1333
- status : needsEvaluation
1333
+ status : noFix
1334
1334
HintCode.DEAD_CODE :
1335
1335
status : hasFix
1336
1336
HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH :
@@ -1340,7 +1340,13 @@ HintCode.DEAD_CODE_ON_CATCH_SUBTYPE:
1340
1340
HintCode.DEPRECATED_COLON_FOR_DEFAULT_VALUE :
1341
1341
status : hasFix
1342
1342
HintCode.DEPRECATED_EXPORT_USE :
1343
- status : needsEvaluation
1343
+ status : needsFix
1344
+ notes : |-
1345
+ Low priority, because this is likely not encountered often.
1346
+
1347
+ The fix is to look for a non-deprected way to import the name and to add a
1348
+ new import for it. It might be possible to remove the old import if all of
1349
+ the names being imported through it are available through the new import.
1344
1350
HintCode.DEPRECATED_EXTENDS_FUNCTION :
1345
1351
status : needsFix
1346
1352
notes : |-
@@ -1398,63 +1404,108 @@ HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE:
1398
1404
notes : |-
1399
1405
One fix is to convert the reference to a 'package:' URI.
1400
1406
HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION :
1401
- status : needsEvaluation
1407
+ status : noFix
1402
1408
HintCode.IMPORT_OF_LEGACY_LIBRARY_INTO_NULL_SAFE :
1403
- status : needsEvaluation
1409
+ status : noFix
1410
+ notes : Deprecated
1404
1411
HintCode.INFERENCE_FAILURE_ON_COLLECTION_LITERAL :
1405
- status : needsEvaluation
1412
+ status : noFix
1406
1413
HintCode.INFERENCE_FAILURE_ON_FUNCTION_INVOCATION :
1407
- status : needsEvaluation
1414
+ status : noFix
1408
1415
HintCode.INFERENCE_FAILURE_ON_FUNCTION_RETURN_TYPE :
1409
- status : needsEvaluation
1416
+ status : noFix
1410
1417
HintCode.INFERENCE_FAILURE_ON_GENERIC_INVOCATION :
1411
- status : needsEvaluation
1418
+ status : noFix
1412
1419
HintCode.INFERENCE_FAILURE_ON_INSTANCE_CREATION :
1413
- status : needsEvaluation
1420
+ status : noFix
1414
1421
HintCode.INFERENCE_FAILURE_ON_UNINITIALIZED_VARIABLE :
1415
- status : needsEvaluation
1422
+ status : noFix
1416
1423
HintCode.INFERENCE_FAILURE_ON_UNTYPED_PARAMETER :
1417
- status : needsEvaluation
1424
+ status : noFix
1418
1425
HintCode.INVALID_ANNOTATION_TARGET :
1419
- status : needsEvaluation
1426
+ status : needsFix
1427
+ notes : |-
1428
+ The fix is to remove the annotation.
1420
1429
HintCode.INVALID_EXPORT_OF_INTERNAL_ELEMENT :
1421
- status : needsEvaluation
1430
+ status : needsFix
1431
+ notes : |-
1432
+ Low priority, because this is likely not encountered often.
1433
+
1434
+ The fix is to update the export directive so that the name is no longer
1435
+ exported.
1422
1436
HintCode.INVALID_EXPORT_OF_INTERNAL_ELEMENT_INDIRECTLY :
1423
- status : needsEvaluation
1437
+ status : needsFix
1438
+ notes : |-
1439
+ Low priority, because this is likely not encountered often and the only fix
1440
+ is not likely to be the most common fix.
1441
+
1442
+ The fix is to update the export directive so that the member using the name
1443
+ is no longer exported.
1424
1444
HintCode.INVALID_FACTORY_ANNOTATION :
1425
1445
status : hasFix
1426
1446
HintCode.INVALID_FACTORY_METHOD_DECL :
1427
- status : needsEvaluation
1447
+ status : noFix
1428
1448
HintCode.INVALID_FACTORY_METHOD_IMPL :
1429
- status : needsEvaluation
1449
+ status : noFix
1430
1450
HintCode.INVALID_IMMUTABLE_ANNOTATION :
1431
1451
status : hasFix
1432
1452
HintCode.INVALID_INTERNAL_ANNOTATION :
1433
- status : needsEvaluation
1453
+ status : needsFix
1454
+ notes : |-
1455
+ The fix is to remove the annotation.
1434
1456
HintCode.INVALID_LANGUAGE_VERSION_OVERRIDE_AT_SIGN :
1435
- status : needsEvaluation
1457
+ status : needsFix
1458
+ notes : |-
1459
+ If we can identify enough information to do so, the fix is to rewrite the
1460
+ comment into a valid form.
1436
1461
HintCode.INVALID_LANGUAGE_VERSION_OVERRIDE_EQUALS :
1437
- status : needsEvaluation
1462
+ status : needsFix
1463
+ notes : |-
1464
+ If we can identify enough information to do so, the fix is to rewrite the
1465
+ comment into a valid form.
1438
1466
HintCode.INVALID_LANGUAGE_VERSION_OVERRIDE_GREATER :
1439
- status : needsEvaluation
1467
+ status : needsFix
1468
+ notes : |-
1469
+ If we can identify enough information to do so, the fix is to rewrite the
1470
+ comment into a valid form.
1440
1471
HintCode.INVALID_LANGUAGE_VERSION_OVERRIDE_LOCATION :
1441
- status : needsEvaluation
1472
+ status : needsFix
1473
+ notes : |-
1474
+ If we can identify enough information to do so, the fix is to rewrite the
1475
+ comment into a valid form.
1442
1476
HintCode.INVALID_LANGUAGE_VERSION_OVERRIDE_LOWER_CASE :
1443
- status : needsEvaluation
1477
+ status : needsFix
1478
+ notes : |-
1479
+ If we can identify enough information to do so, the fix is to rewrite the
1480
+ comment into a valid form.
1444
1481
HintCode.INVALID_LANGUAGE_VERSION_OVERRIDE_NUMBER :
1445
- status : needsEvaluation
1482
+ status : needsFix
1483
+ notes : |-
1484
+ If we can identify enough information to do so, the fix is to rewrite the
1485
+ comment into a valid form.
1446
1486
HintCode.INVALID_LANGUAGE_VERSION_OVERRIDE_PREFIX :
1447
- status : needsEvaluation
1487
+ status : needsFix
1488
+ notes : |-
1489
+ If we can identify enough information to do so, the fix is to rewrite the
1490
+ comment into a valid form.
1448
1491
HintCode.INVALID_LANGUAGE_VERSION_OVERRIDE_TRAILING_CHARACTERS :
1449
- status : needsEvaluation
1492
+ status : needsFix
1493
+ notes : |-
1494
+ If we can identify enough information to do so, the fix is to rewrite the
1495
+ comment into a valid form.
1450
1496
HintCode.INVALID_LANGUAGE_VERSION_OVERRIDE_TWO_SLASHES :
1451
- status : needsEvaluation
1497
+ status : needsFix
1498
+ notes : |-
1499
+ If we can identify enough information to do so, the fix is to rewrite the
1500
+ comment into a valid form.
1452
1501
HintCode.INVALID_LITERAL_ANNOTATION :
1453
1502
status : hasFix
1454
1503
HintCode.INVALID_NON_VIRTUAL_ANNOTATION :
1455
- status : needsEvaluation
1504
+ status : needsFix
1505
+ notes : |-
1506
+ The fix is to remove the annotation.
1456
1507
HintCode.INVALID_OVERRIDE_OF_NON_VIRTUAL_MEMBER :
1457
- status : needsEvaluation
1508
+ status : noFix
1458
1509
HintCode.INVALID_REQUIRED_NAMED_PARAM :
1459
1510
status : hasFix
1460
1511
HintCode.INVALID_REQUIRED_OPTIONAL_POSITIONAL_PARAM :
@@ -1464,21 +1515,25 @@ HintCode.INVALID_REQUIRED_POSITIONAL_PARAM:
1464
1515
HintCode.INVALID_SEALED_ANNOTATION :
1465
1516
status : hasFix
1466
1517
HintCode.INVALID_USE_OF_INTERNAL_MEMBER :
1467
- status : needsEvaluation
1518
+ status : noFix
1468
1519
HintCode.INVALID_USE_OF_PROTECTED_MEMBER :
1469
- status : needsEvaluation
1520
+ status : noFix
1470
1521
HintCode.INVALID_USE_OF_VISIBLE_FOR_OVERRIDING_MEMBER :
1471
- status : needsEvaluation
1522
+ status : noFix
1472
1523
since : ~2.15
1473
1524
HintCode.INVALID_USE_OF_VISIBLE_FOR_TEMPLATE_MEMBER :
1474
- status : needsEvaluation
1525
+ status : noFix
1475
1526
HintCode.INVALID_USE_OF_VISIBLE_FOR_TESTING_MEMBER :
1476
- status : needsEvaluation
1527
+ status : noFix
1477
1528
HintCode.INVALID_VISIBILITY_ANNOTATION :
1478
- status : needsEvaluation
1529
+ status : needsFix
1530
+ notes : |-
1531
+ The fix is to remove the annotation.
1479
1532
HintCode.INVALID_VISIBLE_FOR_OVERRIDING_ANNOTATION :
1480
1533
status : needsFix
1481
1534
since : ~2.15
1535
+ notes : |-
1536
+ The fix is to remove the annotation.
1482
1537
HintCode.MISSING_OVERRIDE_OF_MUST_BE_OVERRIDDEN_ONE :
1483
1538
status : hasFix
1484
1539
HintCode.MISSING_OVERRIDE_OF_MUST_BE_OVERRIDDEN_TWO :
@@ -1492,24 +1547,28 @@ HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS:
1492
1547
HintCode.MISSING_RETURN :
1493
1548
status : hasFix
1494
1549
HintCode.MIXIN_ON_SEALED_CLASS :
1495
- status : needsEvaluation
1550
+ status : noFix
1496
1551
HintCode.MUST_BE_IMMUTABLE :
1497
- status : needsEvaluation
1552
+ status : noFix
1498
1553
HintCode.MUST_CALL_SUPER :
1499
1554
status : hasFix
1500
1555
HintCode.NON_CONST_CALL_TO_LITERAL_CONSTRUCTOR :
1501
- status : needsEvaluation
1556
+ status : needsFix
1557
+ notes : |-
1558
+ The fix is to add `const` before the constructor invocation.
1502
1559
HintCode.NON_CONST_CALL_TO_LITERAL_CONSTRUCTOR_USING_NEW :
1503
- status : needsEvaluation
1560
+ status : needsFix
1561
+ notes : |-
1562
+ The fix is to replace `new` with `const`.
1504
1563
HintCode.NULL_ARGUMENT_TO_NON_NULL_TYPE :
1505
- status : needsEvaluation
1564
+ status : noFix
1506
1565
since : ~2.15
1507
1566
HintCode.NULL_AWARE_BEFORE_OPERATOR :
1508
- status : needsEvaluation
1567
+ status : noFix
1509
1568
HintCode.NULL_AWARE_IN_CONDITION :
1510
- status : needsEvaluation
1569
+ status : noFix
1511
1570
HintCode.NULL_AWARE_IN_LOGICAL_OPERATOR :
1512
- status : needsEvaluation
1571
+ status : noFix
1513
1572
HintCode.NULL_CHECK_ALWAYS_FAILS :
1514
1573
status : needsFix
1515
1574
notes : |-
@@ -1534,11 +1593,13 @@ HintCode.RECEIVER_OF_TYPE_NEVER:
1534
1593
notes : |-
1535
1594
We _could_ remove the thing being received (method invocation, etc.)
1536
1595
HintCode.RETURN_OF_DO_NOT_STORE :
1537
- status : needsEvaluation
1596
+ status : needsFix
1597
+ notes : |-
1598
+ The fix is to add the annotation to the enclosing function.
1538
1599
HintCode.RETURN_OF_INVALID_TYPE_FROM_CATCH_ERROR :
1539
- status : needsEvaluation
1600
+ status : noFix
1540
1601
HintCode.RETURN_TYPE_INVALID_FOR_CATCH_ERROR :
1541
- status : needsEvaluation
1602
+ status : noFix
1542
1603
HintCode.SDK_VERSION_AS_EXPRESSION_IN_CONST_CONTEXT :
1543
1604
status : hasFix
1544
1605
HintCode.SDK_VERSION_ASYNC_EXPORTED_FROM_CORE :
@@ -1557,13 +1618,15 @@ HintCode.SDK_VERSION_GT_GT_GT_OPERATOR:
1557
1618
HintCode.SDK_VERSION_IS_EXPRESSION_IN_CONST_CONTEXT :
1558
1619
status : hasFix
1559
1620
HintCode.SDK_VERSION_NEVER :
1560
- status : needsEvaluation
1621
+ status : noFix
1622
+ notes : Deprecated
1561
1623
HintCode.SDK_VERSION_SET_LITERAL :
1562
1624
status : hasFix
1563
1625
HintCode.SDK_VERSION_UI_AS_CODE :
1564
1626
status : hasFix
1565
1627
HintCode.SDK_VERSION_UI_AS_CODE_IN_CONST_CONTEXT :
1566
- status : needsEvaluation
1628
+ status : noFix
1629
+ notes : Deprecated
1567
1630
HintCode.STRICT_RAW_TYPE :
1568
1631
status : needsFix
1569
1632
notes : |-
0 commit comments