dart-sdk/pkg/analysis_server/tool/code_completion
Sam Rawlins aad9e57674 Revert "Revert "[analyzer] new warning for nullable '==' parameter type""
This reverts commit 885457e1d3.

[analyzer] new warning for nullable '==' parameter type

This rule checks that a parameter to an `operator ==` implementation has
a non-nullable type.

I intentionally did not enforce, in this rule, that the parameter is
exactly `Object`. It is legal to narrow the parameter type to a
different non-nullable type, like `int`. I can't imagine doing it, but
it seems to be unrelated to whether the type should be nullable or not.

Fixes https://github.com/dart-lang/linter/issues/3441

Replaces https://github.com/dart-lang/linter/pull/3923

Change-Id: Ic0be2bfebaf59b0336e9a3a58e5b7f5359eb8646
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291042
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2023-12-14 23:58:12 +00:00
..
data
code_metrics.dart enable flutter_style_todos in server 2023-11-14 21:08:12 +00:00
completion_metrics.dart enable flutter_style_todos in server 2023-11-14 21:08:12 +00:00
completion_metrics_base.dart Fix overlays in completion_metrics.dart 2022-11-11 00:20:29 +00:00
completion_metrics_client.dart Fix overlays in completion_metrics.dart 2022-11-11 00:20:29 +00:00
corpus.dart [pkg/analysis_server] remove code referencing itsallwidgets.com 2022-05-23 20:54:00 +00:00
flutter_metrics.dart analyzer: Convert Flutter (utilities) into a static class. 2023-12-07 02:03:26 +00:00
implicit_type_declarations.dart Deprecate 'DartType.isDynamic', use 'is DynamicType' instead. 2023-05-01 16:09:08 +00:00
metrics_util.dart Revert "Revert "[analyzer] new warning for nullable '==' parameter type"" 2023-12-14 23:58:12 +00:00
output_utilities.dart Convert a few utility libraries to null safety 2021-03-31 05:45:32 +00:00
relevance_metrics.dart analyzer: Convert Flutter (utilities) into a static class. 2023-12-07 02:03:26 +00:00
relevance_table_generator.dart analyzer: Convert Flutter (utilities) into a static class. 2023-12-07 02:03:26 +00:00
visitors.dart enable flutter_style_todos in server 2023-11-14 21:08:12 +00:00