@@ -427,16 +427,16 @@ class _AnalyzerTopLevelOptionsValidator extends _TopLevelOptionValidator {
427427/// This includes the format of the `cannot-ignore` section, the format of
428428/// values in the section, and whether each value is a valid string.
429429class _CannotIgnoreOptionValidator extends OptionsValidator {
430- /// Lazily populated set of error codes .
431- static final Set <String > _errorCodes =
432- errorCodeValues .map ((DiagnosticCode code) => code.name).toSet ();
430+ /// Lazily populated set of diagnostic code names .
431+ static final Set <String > _diagnosticCodes =
432+ diagnosticCodeValues .map ((DiagnosticCode code) => code.name).toSet ();
433433
434- /// The error code names that existed, but were removed.
434+ /// The diagnostic code names that existed, but were removed.
435435 /// We don't want to report these, this breaks clients.
436436 // TODO(scheglov): https://github.com/flutter/flutter/issues/141576
437- static const Set <String > _removedErrorCodes = {'MISSING_RETURN' };
437+ static const Set <String > _removedDiagnosticCodes = {'MISSING_RETURN' };
438438
439- /// Lazily populated set of lint codes .
439+ /// Lazily populated set of lint code names .
440440 late final Set <String > _lintCodes =
441441 Registry .ruleRegistry.rules
442442 .map ((rule) => rule.name.toUpperCase ())
@@ -457,9 +457,9 @@ class _CannotIgnoreOptionValidator extends OptionsValidator {
457457 continue ;
458458 }
459459 var upperCaseName = unignorableName.toUpperCase ();
460- if (! _errorCodes .contains (upperCaseName) &&
460+ if (! _diagnosticCodes .contains (upperCaseName) &&
461461 ! _lintCodes.contains (upperCaseName) &&
462- ! _removedErrorCodes .contains (upperCaseName)) {
462+ ! _removedDiagnosticCodes .contains (upperCaseName)) {
463463 reporter.atSourceSpan (
464464 unignorableNameNode.span,
465465 AnalysisOptionsWarningCode .UNRECOGNIZED_ERROR_CODE ,
@@ -677,16 +677,16 @@ class _ErrorFilterOptionValidator extends OptionsValidator {
677677 static final String legalValueString =
678678 legalValues.quotedAndCommaSeparatedWithAnd;
679679
680- /// Lazily populated set of diagnostic codes .
680+ /// Lazily populated set of diagnostic code names .
681681 static final Set <String > _diagnosticCodes =
682- errorCodeValues .map ((DiagnosticCode code) => code.name).toSet ();
682+ diagnosticCodeValues .map ((DiagnosticCode code) => code.name).toSet ();
683683
684- /// The error code names that existed, but were removed.
684+ /// The diagnostic code names that existed, but were removed.
685685 /// We don't want to report these, this breaks clients.
686686 // TODO(scheglov): https://github.com/flutter/flutter/issues/141576
687- static const Set <String > _removedErrorCodes = {'MISSING_RETURN' };
687+ static const Set <String > _removedDiagnosticCodes = {'MISSING_RETURN' };
688688
689- /// Lazily populated set of lint codes .
689+ /// Lazily populated set of lint code names .
690690 late final Set <String > _lintCodes =
691691 Registry .ruleRegistry.rules
692692 .map ((rule) => rule.name.toUpperCase ())
@@ -704,7 +704,7 @@ class _ErrorFilterOptionValidator extends OptionsValidator {
704704 value = toUpperCase (k.value);
705705 if (! _diagnosticCodes.contains (value) &&
706706 ! _lintCodes.contains (value) &&
707- ! _removedErrorCodes .contains (value)) {
707+ ! _removedDiagnosticCodes .contains (value)) {
708708 reporter.atSourceSpan (
709709 k.span,
710710 AnalysisOptionsWarningCode .UNRECOGNIZED_ERROR_CODE ,
0 commit comments