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
Unless stated otherwise, the documentation on this site reflects Dart 3.10.3. Report an issue.