From fb7f2e2f9d334523d3459d6c02a861b50216a5bf Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Wed, 21 Aug 2024 12:39:50 -0700 Subject: [PATCH] Remove avoid_null_checks_in_equality_operators from recommended --- CHANGELOG.md | 2 ++ lib/recommended.yaml | 1 - rules.md | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e37d3de..5c81e60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,12 @@ - `recommended`: - added [unnecessary_library_name] (https://github.com/dart-lang/lints/issues/181) - added [invalid_runtime_check_with_js_interop_types] (https://github.com/dart-lang/lints/issues/188) + - removed [avoid_null_checks_in_equality_operators] (https://github.com/dart-lang/lints/issues/200) - Updated the SDK lower-bound to 3.5. [unnecessary_library_name]: https://dart.dev/lints/unnecessary_library_name [invalid_runtime_check_with_js_interop_types]: https://dart.dev/tools/linter-rules/invalid_runtime_check_with_js_interop_types +[avoid_null_checks_in_equality_operators]: https://dart.dev/tools/linter-rules/avoid_null_checks_in_equality_operators ## 4.0.0 diff --git a/lib/recommended.yaml b/lib/recommended.yaml index 602ae5b..5b762ff 100644 --- a/lib/recommended.yaml +++ b/lib/recommended.yaml @@ -14,7 +14,6 @@ linter: - annotate_overrides - avoid_function_literals_in_foreach_calls - avoid_init_to_null - - avoid_null_checks_in_equality_operators - avoid_renaming_method_parameters - avoid_return_types_on_setters - avoid_returning_null_for_void diff --git a/rules.md b/rules.md index f48b389..7aba844 100644 --- a/rules.md +++ b/rules.md @@ -48,7 +48,6 @@ | [`annotate_overrides`](https://dart.dev/lints/annotate_overrides) | Annotate overridden members. | ✅ | | [`avoid_function_literals_in_foreach_calls`](https://dart.dev/lints/avoid_function_literals_in_foreach_calls) | Avoid using `forEach` with a function literal. | ✅ | | [`avoid_init_to_null`](https://dart.dev/lints/avoid_init_to_null) | Don't explicitly initialize variables to `null`. | ✅ | -| [`avoid_null_checks_in_equality_operators`](https://dart.dev/lints/avoid_null_checks_in_equality_operators) | Don't check for `null` in custom `==` operators. | ✅ | | [`avoid_renaming_method_parameters`](https://dart.dev/lints/avoid_renaming_method_parameters) | Don't rename parameters of overridden methods. | ✅ | | [`avoid_return_types_on_setters`](https://dart.dev/lints/avoid_return_types_on_setters) | Avoid return types on setters. | ✅ | | [`avoid_returning_null_for_void`](https://dart.dev/lints/avoid_returning_null_for_void) | Avoid returning `null` for `void`. | ✅ |