mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 20:36:13 +00:00
c001d5116a
This changes the (non-machine/json) output of "dart analyze" when there are errors in pubspec.yaml/analysis_options. Before: ``` Analyzing myapp... error • analysis_options.yaml:3:1 • Expected ':'. Parse errors in analysis_options.yaml may result in other incorrect diagnostics. • parse_error error • lib\main.dart:1:16 • A value of type 'Null' can't be returned from the function 'foo' because it has a return type of 'int'. • return_of_invalid_type 2 issues found. ``` After: ``` Analyzing myapp... Errors were found in pubspec.yaml or analysis_options.yaml which may result in other incorrect errors. error • analysis_options.yaml:3:1 • Expected ':'. Parse errors in analysis_options.yaml may result in other incorrect diagnostics. • parse_error Errors in other files that might be caused by those above. error • lib\main.dart:1:16 • A value of type 'Null' can't be returned from the function 'foo' because it has a return type of 'int'. • return_of_invalid_type 2 issues found. ``` Fixes https://github.com/dart-lang/sdk/issues/55987 Change-Id: I25ae7b200463f2cd3f2046ea9f5f8ddc5c62cc60 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/372080 Reviewed-by: Sam Rawlins <srawlins@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> |
||
---|---|---|
.. | ||
commands | ||
native_assets | ||
smoke | ||
analysis_server_test.dart | ||
analytics_test.dart | ||
core_test.dart | ||
experiment_util.dart | ||
experiments_test.dart | ||
fix_driver_test.dart | ||
load_from_dill_test.dart | ||
no_such_file_test.dart | ||
regress_46364_test.dart | ||
resident_frontend_utils_test.dart | ||
sdk_test.dart | ||
templates_test.dart | ||
test_all.dart | ||
utils.dart | ||
utils_test.dart |