analysis_ option_ deprecated
The option '{0}' is no longer supported.
Description
#The analyzer produces this diagnostic when an option in an analysis options file is deprecated.
Example
#
The following code produces this diagnostic because the top-level key
errors is deprecated:
// %uri="analysis_options.yaml"
errors:
dead_code: ignore
Common fixes
#If a replacement option or format exists, update the file to use it:
// %uri="analysis_options.yaml"
analyzer:
errors:
dead_code: ignore
If no replacement is available, remove the deprecated option.
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.