Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit b3ff468

Browse files
authored
Deprecate invariant_booleans (#3497)
* Deprecate invariant_booleans * all.yaml * fmt
1 parent 6b65085 commit b3ff468

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

example/all.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ linter:
7676
- flutter_style_todos
7777
- hash_and_equals
7878
- implementation_imports
79-
- invariant_booleans
8079
- iterable_contains_unrelated_type
8180
- join_return_with_assignment
8281
- leading_newlines_in_multiline_strings

lib/src/rules/invariant_booleans.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const _desc =
1616
r'Conditions should not unconditionally evaluate to `true` or to `false`.';
1717

1818
const _details = r'''
19+
**DEPRECATED:** This rule is unmaintained and will be removed in a future Linter
20+
release.
1921
2022
**DON'T** test for conditions that can be inferred at compile time or test the
2123
same condition twice.
@@ -109,9 +111,7 @@ class InvariantBooleans extends LintRule {
109111
name: 'invariant_booleans',
110112
description: _desc,
111113
details: _details,
112-
// This rule is experimental until there are fewer "false positive"
113-
// bugs, and performance has been improved.
114-
maturity: Maturity.experimental,
114+
maturity: Maturity.deprecated,
115115
group: Group.errors);
116116

117117
@override

0 commit comments

Comments
 (0)