analysis_ option_ deprecated
Details about the 'analysis_option_deprecated' diagnostic produced by the Dart analyzer.
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. Report an issue.