undefined_ lint
'{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 the lint
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. Page last updated on 2025-12-5. View source or report an issue.