Skip to content

Commit 3166622

Browse files
bwilkersonCommit Queue
authored and
Commit Queue
committed
Update the fix status file
Change-Id: I13fc20f8040be486a4d1d44647a871e7e1c69013 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/274482 Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent c91b73e commit 3166622

File tree

1 file changed

+115
-52
lines changed

1 file changed

+115
-52
lines changed

pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml

Lines changed: 115 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
# issue created for it.
2525
#
2626
# Stats:
27-
# - 698 "needsEvaluation"
27+
# - 655 "needsEvaluation"
2828
# - 282 for CompileTimeErrorCodes
2929
# - 220 for ParserErrorCodes
30-
# - 73 "needsFix"
30+
# - 92 "needsFix"
3131
# - 310 "hasFix"
32-
# - 64 "noFix"
32+
# - 94 "noFix"
3333

3434
AnalysisOptionsErrorCode.INCLUDED_FILE_PARSE_ERROR:
3535
status: noFix
@@ -54,7 +54,7 @@ AnalysisOptionsWarningCode.INCLUDE_FILE_NOT_FOUND:
5454
notes: |-
5555
It would not be performant to search the disk for analysis options files
5656
that could be included.
57-
57+
5858
We could potentially have a fix to create the referenced file that currently
5959
doesn't exist, but that would only be useful if the missing file is in the
6060
same repository as the including file.
@@ -1328,9 +1328,9 @@ HintCode.BODY_MIGHT_COMPLETE_NORMALLY_NULLABLE:
13281328
HintCode.CAN_BE_NULL_AFTER_NULL_AWARE:
13291329
status: hasFix
13301330
HintCode.CAST_FROM_NULL_ALWAYS_FAILS:
1331-
status: needsEvaluation
1331+
status: noFix
13321332
HintCode.CAST_FROM_NULLABLE_ALWAYS_FAILS:
1333-
status: needsEvaluation
1333+
status: noFix
13341334
HintCode.DEAD_CODE:
13351335
status: hasFix
13361336
HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH:
@@ -1340,7 +1340,13 @@ HintCode.DEAD_CODE_ON_CATCH_SUBTYPE:
13401340
HintCode.DEPRECATED_COLON_FOR_DEFAULT_VALUE:
13411341
status: hasFix
13421342
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.
13441350
HintCode.DEPRECATED_EXTENDS_FUNCTION:
13451351
status: needsFix
13461352
notes: |-
@@ -1398,63 +1404,108 @@ HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE:
13981404
notes: |-
13991405
One fix is to convert the reference to a 'package:' URI.
14001406
HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION:
1401-
status: needsEvaluation
1407+
status: noFix
14021408
HintCode.IMPORT_OF_LEGACY_LIBRARY_INTO_NULL_SAFE:
1403-
status: needsEvaluation
1409+
status: noFix
1410+
notes: Deprecated
14041411
HintCode.INFERENCE_FAILURE_ON_COLLECTION_LITERAL:
1405-
status: needsEvaluation
1412+
status: noFix
14061413
HintCode.INFERENCE_FAILURE_ON_FUNCTION_INVOCATION:
1407-
status: needsEvaluation
1414+
status: noFix
14081415
HintCode.INFERENCE_FAILURE_ON_FUNCTION_RETURN_TYPE:
1409-
status: needsEvaluation
1416+
status: noFix
14101417
HintCode.INFERENCE_FAILURE_ON_GENERIC_INVOCATION:
1411-
status: needsEvaluation
1418+
status: noFix
14121419
HintCode.INFERENCE_FAILURE_ON_INSTANCE_CREATION:
1413-
status: needsEvaluation
1420+
status: noFix
14141421
HintCode.INFERENCE_FAILURE_ON_UNINITIALIZED_VARIABLE:
1415-
status: needsEvaluation
1422+
status: noFix
14161423
HintCode.INFERENCE_FAILURE_ON_UNTYPED_PARAMETER:
1417-
status: needsEvaluation
1424+
status: noFix
14181425
HintCode.INVALID_ANNOTATION_TARGET:
1419-
status: needsEvaluation
1426+
status: needsFix
1427+
notes: |-
1428+
The fix is to remove the annotation.
14201429
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.
14221436
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.
14241444
HintCode.INVALID_FACTORY_ANNOTATION:
14251445
status: hasFix
14261446
HintCode.INVALID_FACTORY_METHOD_DECL:
1427-
status: needsEvaluation
1447+
status: noFix
14281448
HintCode.INVALID_FACTORY_METHOD_IMPL:
1429-
status: needsEvaluation
1449+
status: noFix
14301450
HintCode.INVALID_IMMUTABLE_ANNOTATION:
14311451
status: hasFix
14321452
HintCode.INVALID_INTERNAL_ANNOTATION:
1433-
status: needsEvaluation
1453+
status: needsFix
1454+
notes: |-
1455+
The fix is to remove the annotation.
14341456
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.
14361461
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.
14381466
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.
14401471
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.
14421476
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.
14441481
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.
14461486
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.
14481491
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.
14501496
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.
14521501
HintCode.INVALID_LITERAL_ANNOTATION:
14531502
status: hasFix
14541503
HintCode.INVALID_NON_VIRTUAL_ANNOTATION:
1455-
status: needsEvaluation
1504+
status: needsFix
1505+
notes: |-
1506+
The fix is to remove the annotation.
14561507
HintCode.INVALID_OVERRIDE_OF_NON_VIRTUAL_MEMBER:
1457-
status: needsEvaluation
1508+
status: noFix
14581509
HintCode.INVALID_REQUIRED_NAMED_PARAM:
14591510
status: hasFix
14601511
HintCode.INVALID_REQUIRED_OPTIONAL_POSITIONAL_PARAM:
@@ -1464,21 +1515,25 @@ HintCode.INVALID_REQUIRED_POSITIONAL_PARAM:
14641515
HintCode.INVALID_SEALED_ANNOTATION:
14651516
status: hasFix
14661517
HintCode.INVALID_USE_OF_INTERNAL_MEMBER:
1467-
status: needsEvaluation
1518+
status: noFix
14681519
HintCode.INVALID_USE_OF_PROTECTED_MEMBER:
1469-
status: needsEvaluation
1520+
status: noFix
14701521
HintCode.INVALID_USE_OF_VISIBLE_FOR_OVERRIDING_MEMBER:
1471-
status: needsEvaluation
1522+
status: noFix
14721523
since: ~2.15
14731524
HintCode.INVALID_USE_OF_VISIBLE_FOR_TEMPLATE_MEMBER:
1474-
status: needsEvaluation
1525+
status: noFix
14751526
HintCode.INVALID_USE_OF_VISIBLE_FOR_TESTING_MEMBER:
1476-
status: needsEvaluation
1527+
status: noFix
14771528
HintCode.INVALID_VISIBILITY_ANNOTATION:
1478-
status: needsEvaluation
1529+
status: needsFix
1530+
notes: |-
1531+
The fix is to remove the annotation.
14791532
HintCode.INVALID_VISIBLE_FOR_OVERRIDING_ANNOTATION:
14801533
status: needsFix
14811534
since: ~2.15
1535+
notes: |-
1536+
The fix is to remove the annotation.
14821537
HintCode.MISSING_OVERRIDE_OF_MUST_BE_OVERRIDDEN_ONE:
14831538
status: hasFix
14841539
HintCode.MISSING_OVERRIDE_OF_MUST_BE_OVERRIDDEN_TWO:
@@ -1492,24 +1547,28 @@ HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS:
14921547
HintCode.MISSING_RETURN:
14931548
status: hasFix
14941549
HintCode.MIXIN_ON_SEALED_CLASS:
1495-
status: needsEvaluation
1550+
status: noFix
14961551
HintCode.MUST_BE_IMMUTABLE:
1497-
status: needsEvaluation
1552+
status: noFix
14981553
HintCode.MUST_CALL_SUPER:
14991554
status: hasFix
15001555
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.
15021559
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`.
15041563
HintCode.NULL_ARGUMENT_TO_NON_NULL_TYPE:
1505-
status: needsEvaluation
1564+
status: noFix
15061565
since: ~2.15
15071566
HintCode.NULL_AWARE_BEFORE_OPERATOR:
1508-
status: needsEvaluation
1567+
status: noFix
15091568
HintCode.NULL_AWARE_IN_CONDITION:
1510-
status: needsEvaluation
1569+
status: noFix
15111570
HintCode.NULL_AWARE_IN_LOGICAL_OPERATOR:
1512-
status: needsEvaluation
1571+
status: noFix
15131572
HintCode.NULL_CHECK_ALWAYS_FAILS:
15141573
status: needsFix
15151574
notes: |-
@@ -1534,11 +1593,13 @@ HintCode.RECEIVER_OF_TYPE_NEVER:
15341593
notes: |-
15351594
We _could_ remove the thing being received (method invocation, etc.)
15361595
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.
15381599
HintCode.RETURN_OF_INVALID_TYPE_FROM_CATCH_ERROR:
1539-
status: needsEvaluation
1600+
status: noFix
15401601
HintCode.RETURN_TYPE_INVALID_FOR_CATCH_ERROR:
1541-
status: needsEvaluation
1602+
status: noFix
15421603
HintCode.SDK_VERSION_AS_EXPRESSION_IN_CONST_CONTEXT:
15431604
status: hasFix
15441605
HintCode.SDK_VERSION_ASYNC_EXPORTED_FROM_CORE:
@@ -1557,13 +1618,15 @@ HintCode.SDK_VERSION_GT_GT_GT_OPERATOR:
15571618
HintCode.SDK_VERSION_IS_EXPRESSION_IN_CONST_CONTEXT:
15581619
status: hasFix
15591620
HintCode.SDK_VERSION_NEVER:
1560-
status: needsEvaluation
1621+
status: noFix
1622+
notes: Deprecated
15611623
HintCode.SDK_VERSION_SET_LITERAL:
15621624
status: hasFix
15631625
HintCode.SDK_VERSION_UI_AS_CODE:
15641626
status: hasFix
15651627
HintCode.SDK_VERSION_UI_AS_CODE_IN_CONST_CONTEXT:
1566-
status: needsEvaluation
1628+
status: noFix
1629+
notes: Deprecated
15671630
HintCode.STRICT_RAW_TYPE:
15681631
status: needsFix
15691632
notes: |-

0 commit comments

Comments
 (0)