invalid_option
Details about the 'invalid_option' diagnostic produced by the Dart analyzer.
Invalid option specified for '{0}': {1}
Description
#The analyzer produces this diagnostic when an option is specified and the value of the option is invalid.
Example
#
The following code produces this diagnostic because fail isn't a valid
severity for a diagnostic:
yaml
// %uri="analysis_options.yaml"
analyzer:
errors:
dead_code: fail
prefer_single_quotes: warning
Common fixes
#If you specify the option, provide a valid value for it:
yaml
// %uri="analysis_options.yaml"
analyzer:
errors:
dead_code: error
prefer_single_quotes: warning
If you don't need the option, remove it:
yaml
// %uri="analysis_options.yaml"
analyzer:
errors:
prefer_single_quotes: warning
Was this page's content helpful?
除非另有说明,文档之所提及适用于 Dart 3.10.3 版本报告页面问题.