unrecognized_ error_ code
'{0}' isn't a recognized diagnostic code.
Description
#The analyzer produces this diagnostic when the analyzer/errors section in an analysis options file contains a diagnostic code that is not valid.
Example
#
The following code produces this diagnostic because the diagnostic
implementation_import isn't defined:
// %uri="analysis_options.yaml"
analyzer:
errors:
annotate_overrides: error
implementation_import: warning
Common fixes
#If the diagnostic being specified has a different name, then replace the name:
// %uri="analysis_options.yaml"
analyzer:
errors:
annotate_overrides: error
implementation_imports: warning
If there is no diagnostic, then remove the name:
// %uri="analysis_options.yaml"
analyzer:
errors:
annotate_overrides: error
Unless stated otherwise, the documentation on this site reflects Dart 3.10.3. Page last updated on 2025-12-5. View source or report an issue.