included_ file_ warning
Warning in the included options file {0}({1}..{2}): {3}
Description
#
The analyzer produces this diagnostic when an analysis options file
contains an include key, and the included file contains a warning.
Example
#Given a file named shared.yaml that contains:
// %uri="shared.yaml"
linter:
rules:
- undefined_lint_rule
The following code produces this diagnostic because the file shared.yaml
has a warning that the rule undefined_lint_rule doesn't exist:
// %uri="analysis_options.yaml"
include: shared.yaml
Common fixes
#If the included file can be fixed, then fix the warning in it.
If the included file can't be fixed, then don't include it.
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.