dart format (and possibly analyze) should fail if it is unable to resolve include references in analysis_options.yaml #60291
Labels
area-dart-cli
Use area-dart-cli for issues related to the 'dart' command like tool.
dart-cli-analyze
Issues related to the 'dart analyze' tool
dart-cli-format
Issues related to the 'dart format' tool
SDK: 3.7.0
dart format
readsanalysis_options.yaml
to get theformatter
options (e.g.page_width
). However, if theinclude
reference inside that file is not available, it throws out the rest of the file too, ignoring the existingformatter
options, using only the default values.Originally found root cause here:
dart-lang/pana#1448
I think this silent fallback on failure is surprising, and I think
dart format
and possiblydart analyze
should fail hard with clear error messages that some reference was not found.The text was updated successfully, but these errors were encountered: