undefined_lint
Details about the 'undefined_lint' diagnostic produced by the Dart analyzer.
'{0}' isn't a recognized lint rule.
Description
#The analyzer produces this diagnostic when an analysis options file attempts to enable a lint rule that is not defined.
Example
#
The following code produces this diagnostic because
implementation_import isn't a known lint:
// %uri="analysis_options.yaml"
linter:
rules:
- annotate_overrides
- implementation_import
Common fixes
#If the name of the lint was mistyped, then correct the name.
// %uri="analysis_options.yaml"
linter:
rules:
- annotate_overrides
- implementation_imports
If there is no lint corresponding to the flagged entry, then remove the undefined lint:
// %uri="analysis_options.yaml"
linter:
rules:
- annotate_overrides
除非另有说明,文档之所提及适用于 Dart 3.10.3 版本报告页面问题.