mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 10:18:31 +00:00
c27d9d72ee
This reverts commit d3124b87e5
.
Reason for revert: unknown code for now.
Original change's description:
> observatory: Ignore new static Warning
>
> There are two spots where a nullable value is passed to a non-nullable
> Future.value call, or a non-nullable Completer.complete call. In the
> interest of not making any functional change, I'm just ignoring this
> new code.
>
> ```
> warning - lib/src/service/object.dart:870:29 - 'Future<Isolate>.value' shouldn't be called with an argument of nullable type 'Isolate?'. Try passing a non-null argument. - nullable_argument_to_non_null_type
> warning - lib/src/service/object.dart:1559:29 - 'Future<Class>.value' shouldn't be called with an argument of nullable type 'Class?'. Try passing a non-null argument. - nullable_argument_to_non_null_type
> ```
>
> Related to https://github.com/dart-lang/sdk/issues/53253
>
> TEST=N/A
>
> Change-Id: I091990975a1f2b927e007564b6ca0658c6a34c20
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/324762
> Reviewed-by: Ben Konyi <bkonyi@google.com>
> Auto-Submit: Samuel Rawlins <srawlins@google.com>
> Commit-Queue: Samuel Rawlins <srawlins@google.com>
Change-Id: Id5d033ca8601ea2f18aa9d2c8f8aeee8a2ceaf0d
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326725
Commit-Queue: Alexander Thomas <athom@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
23 lines
656 B
YAML
23 lines
656 B
YAML
analyzer:
|
|
errors:
|
|
dead_code: info
|
|
getter_not_subtype_setter_types: info
|
|
missing_enum_constant_in_switch: info
|
|
unused_element: info
|
|
unused_field: info
|
|
unused_import: info
|
|
unused_local_variable: info
|
|
|
|
exclude:
|
|
- tests/service/bad_reload/v2/main.dart
|
|
- tests/service/complex_reload/v2/main.dart
|
|
- tests/service/developer_extension_test.dart
|
|
- tests/service/evaluate_activation_in_method_class_test.dart
|
|
- tests/service/get_user_level_retaining_path_rpc_test.dart
|
|
- tests/service/pause_on_unhandled_async_exceptions_test.dart
|
|
|
|
# linter:
|
|
# rules:
|
|
# - prefer_final_fields
|
|
# - prefer_final_locals
|