File tree Expand file tree Collapse file tree 6 files changed +22
-22
lines changed
analysis_server/lib/src/services/correction Expand file tree Collapse file tree 6 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -1822,10 +1822,6 @@ HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION:
1822
1822
HintCode.IMPORT_OF_LEGACY_LIBRARY_INTO_NULL_SAFE :
1823
1823
status : noFix
1824
1824
notes : Deprecated
1825
- HintCode.UNIGNORABLE_IGNORE :
1826
- status : needsFix
1827
- notes : |-
1828
- Remove the ignore comment (or one code in the comment).
1829
1825
HintCode.UNNECESSARY_CAST :
1830
1826
status : hasFix
1831
1827
HintCode.UNNECESSARY_IMPORT :
@@ -3727,6 +3723,10 @@ WarningCode.UNDEFINED_REFERENCED_PARAMETER:
3727
3723
Can try to find the correct parameter name.
3728
3724
WarningCode.UNDEFINED_SHOWN_NAME :
3729
3725
status : hasFix
3726
+ WarningCode.UNIGNORABLE_IGNORE :
3727
+ status : needsFix
3728
+ notes : |-
3729
+ Remove the ignore comment (or one code in the comment).
3730
3730
WarningCode.UNNECESSARY_CAST_PATTERN :
3731
3731
status : needsFix
3732
3732
notes : |-
Original file line number Diff line number Diff line change @@ -128,16 +128,6 @@ class HintCode extends AnalyzerErrorCode {
128
128
hasPublishedDocs: true ,
129
129
);
130
130
131
- /// Parameters:
132
- /// 0: the name of the non-diagnostic being ignored
133
- static const HintCode UNIGNORABLE_IGNORE = HintCode (
134
- 'UNIGNORABLE_IGNORE' ,
135
- "The diagnostic '{0}' can't be ignored." ,
136
- correctionMessage:
137
- "Try removing the name from the list, or removing the whole comment if "
138
- "this is the only name in the list." ,
139
- );
140
-
141
131
/// No parameters.
142
132
@Deprecated ("Use 'WarningCode.UNNECESSARY_CAST' instead." )
143
133
static const HintCode UNNECESSARY_CAST = HintCode (
Original file line number Diff line number Diff line change @@ -7092,6 +7092,16 @@ class WarningCode extends AnalyzerErrorCode {
7092
7092
hasPublishedDocs: true ,
7093
7093
);
7094
7094
7095
+ /// Parameters:
7096
+ /// 0: the name of the non-diagnostic being ignored
7097
+ static const WarningCode UNIGNORABLE_IGNORE = WarningCode (
7098
+ 'UNIGNORABLE_IGNORE' ,
7099
+ "The diagnostic '{0}' can't be ignored." ,
7100
+ correctionMessage:
7101
+ "Try removing the name from the list, or removing the whole comment if "
7102
+ "this is the only name in the list." ,
7103
+ );
7104
+
7095
7105
/// This is the new replacement for [HintCode.UNNECESSARY_CAST] .
7096
7106
static const HintCode UNNECESSARY_CAST = HintCode .UNNECESSARY_CAST ;
7097
7107
Original file line number Diff line number Diff line change @@ -619,7 +619,6 @@ const List<ErrorCode> errorCodeValues = [
619
619
HintCode .DIVISION_OPTIMIZATION ,
620
620
HintCode .IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION ,
621
621
HintCode .IMPORT_OF_LEGACY_LIBRARY_INTO_NULL_SAFE ,
622
- HintCode .UNIGNORABLE_IGNORE ,
623
622
HintCode .UNNECESSARY_CAST ,
624
623
HintCode .UNNECESSARY_IMPORT ,
625
624
HintCode .UNREACHABLE_SWITCH_CASE ,
@@ -1047,6 +1046,7 @@ const List<ErrorCode> errorCodeValues = [
1047
1046
WarningCode .UNDEFINED_HIDDEN_NAME ,
1048
1047
WarningCode .UNDEFINED_REFERENCED_PARAMETER ,
1049
1048
WarningCode .UNDEFINED_SHOWN_NAME ,
1049
+ WarningCode .UNIGNORABLE_IGNORE ,
1050
1050
WarningCode .UNNECESSARY_CAST_PATTERN ,
1051
1051
WarningCode .UNNECESSARY_FINAL ,
1052
1052
WarningCode .UNNECESSARY_IGNORE ,
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ class IgnoreValidator {
119
119
// ignores in the Flutter code base have been cleaned up.
120
120
// for (var unignorableName in unignorable) {
121
121
// var name = unignorableName.name;
122
- // _errorReporter.reportErrorForOffset(HintCode .UNIGNORABLE_IGNORE,
122
+ // _errorReporter.reportErrorForOffset(WarningCode .UNIGNORABLE_IGNORE,
123
123
// unignorableName.offset, name.length, [name]);
124
124
// list.remove(unignorableName);
125
125
// }
Original file line number Diff line number Diff line change @@ -19931,12 +19931,6 @@ HintCode:
19931
19931
If you can't migrate the imported library, then the importing library
19932
19932
needs to have a language version that is before 2.12, when null safety was
19933
19933
enabled by default.
19934
- UNIGNORABLE_IGNORE:
19935
- problemMessage: "The diagnostic '{0}' can't be ignored."
19936
- correctionMessage: Try removing the name from the list, or removing the whole comment if this is the only name in the list.
19937
- comment: |-
19938
- Parameters:
19939
- 0: the name of the non-diagnostic being ignored
19940
19934
UNNECESSARY_CAST:
19941
19935
problemMessage: Unnecessary cast.
19942
19936
correctionMessage: Try removing the cast.
@@ -25179,6 +25173,12 @@ WarningCode:
25179
25173
25180
25174
var x = min(0, 1);
25181
25175
```
25176
+ UNIGNORABLE_IGNORE:
25177
+ problemMessage: "The diagnostic '{0}' can't be ignored."
25178
+ correctionMessage: Try removing the name from the list, or removing the whole comment if this is the only name in the list.
25179
+ comment: |-
25180
+ Parameters:
25181
+ 0: the name of the non-diagnostic being ignored
25182
25182
UNNECESSARY_CAST:
25183
25183
aliasFor: HintCode.UNNECESSARY_CAST
25184
25184
comment: This is the new replacement for [HintCode.UNNECESSARY_CAST].
You can’t perform that action at this time.
0 commit comments