Skip to content

Commit d80e07e

Browse files
committed
Disable the literal_only_boolean_expressions lint
I don't see any value in the `literal_only_boolean_expressions` lint, and it's already banned internally.
1 parent 054d8ba commit d80e07e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

analysis_options.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ linter:
3636
- library_names
3737
- library_prefixes
3838
- list_remove_unrelated_type
39-
- literal_only_boolean_expressions
39+
#- literal_only_boolean_expressions # https://github.com/dart-lang/linter/issues/453
4040
- non_constant_identifier_names
4141
- one_member_abstracts
4242
- only_throw_errors
@@ -46,7 +46,7 @@ linter:
4646
- package_prefixed_library_names
4747
- prefer_is_not_empty
4848
- slash_for_doc_comments
49-
# TODO - sort_constructors_first
49+
#- sort_constructors_first
5050
- sort_unnamed_constructors_first
5151
- test_types_in_equals
5252
- throw_in_finally

packages/visibility_detector/example/lib/main.dart

-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,6 @@ Iterable<T> collate<T>(Iterable<Iterable<T>> iterables) sync* {
520520
return;
521521
}
522522

523-
// ignore: literal_only_boolean_expressions, https://github.com/dart-lang/linter/issues/453
524523
while (true) {
525524
var exhaustedCount = 0;
526525
for (final i in iterators) {

0 commit comments

Comments
 (0)