dart-sdk/pkg/dartdev/test
Danny Tuppeny c001d5116a [analyzer] Prioritize errors in analysis_options/pubspec errors when running "dart analyze"
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>
2024-06-18 17:29:16 +00:00
..
commands [analyzer] Prioritize errors in analysis_options/pubspec errors when running "dart analyze" 2024-06-18 17:29:16 +00:00
native_assets [vm] Native asset relative path resolution with symlinks 2024-06-12 16:45:19 +00:00
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 [analyzer] Prioritize errors in analysis_options/pubspec errors when running "dart analyze" 2024-06-18 17:29:16 +00:00
utils_test.dart