@@ -47,13 +47,6 @@ linter:
47
47
# http://dart-lang.github.io/linter/lints/always_declare_return_types.html
48
48
# - always_put_required_named_parameters_first
49
49
50
- # All non nullable named parameters should be and annotated with @required.
51
- # This allows API consumers to get warnings via lint rather than a crash a runtime.
52
- # Might become obsolete with Non-Nullable types
53
- #
54
- # http://dart-lang.github.io/linter/lints/always_require_non_null_named_parameters.html
55
- - always_require_non_null_named_parameters
56
-
57
50
# Always use package: imports.
58
51
# While both, relative and package imports are fine, package imports are preferred because they allow for easy find
59
52
# and replace
@@ -233,20 +226,6 @@ linter:
233
226
# https://dart-lang.github.io/linter/lints/avoid_return_types_on_setters.html
234
227
- avoid_return_types_on_setters
235
228
236
- # Since nullsafety landed in dart, `int?` is completely fine to return null and `int` can't return `null` at all.
237
- #
238
- # In general there are plenty of valid reasons to return `null`, not a useful rule
239
- #
240
- # Dart SDK: >= 2.0.0 • (Linter v0.1.31)
241
- #
242
- # https://dart-lang.github.io/linter/lints/avoid_returning_null.html
243
- # - avoid_returning_null
244
-
245
- # Don't use `Future?`, therefore never return null instead of a Future.
246
- # Will become obsolete one Non-Nullable types land
247
- # https://dart-lang.github.io/linter/lints/avoid_returning_null_for_future.html
248
- - avoid_returning_null_for_future
249
-
250
229
# Use empty returns, don't show off with your knowledge about dart internals.
251
230
# https://dart-lang.github.io/linter/lints/avoid_returning_null_for_void.html
252
231
- avoid_returning_null_for_void
@@ -453,7 +432,7 @@ linter:
453
432
# https://dart-lang.github.io/linter/lints/empty_catches.html
454
433
- empty_catches
455
434
456
- # Removed empty constructor bodies
435
+ # Removes empty constructor bodies
457
436
#
458
437
# https://dart-lang.github.io/linter/lints/empty_constructor_bodies.html
459
438
- empty_constructor_bodies
@@ -519,11 +498,6 @@ linter:
519
498
# https://dart-lang.github.io/linter/lints/invalid_case_patterns.html
520
499
- invalid_case_patterns
521
500
522
- # Deprecated, replaced by collection_methods_unrelated_type
523
- #
524
- # https://dart-lang.github.io/linter/lints/iterable_contains_unrelated_type.html
525
- # - iterable_contains_unrelated_type
526
-
527
501
# Hint to join return and assignment.
528
502
#
529
503
# https://dart-lang.github.io/linter/lints/join_return_with_assignment.html
@@ -565,11 +539,6 @@ linter:
565
539
# https://dart-lang.github.io/linter/lints/lines_longer_than_80_chars.html
566
540
# - lines_longer_than_80_chars
567
541
568
- # Deprecated, replaced by collection_methods_unrelated_type
569
- #
570
- # https://dart-lang.github.io/linter/lints/list_remove_unrelated_type.html
571
- # - list_remove_unrelated_type
572
-
573
542
# Good for libraries to prevent unnecessary code paths.
574
543
# False positives may occur for applications when boolean properties are generated by external programs
575
544
# producing auto-generated source code
@@ -619,14 +588,14 @@ linter:
619
588
# https://dart-lang.github.io/linter/lints/no_runtimeType_toString.html
620
589
- no_runtimeType_toString
621
590
622
- # Don’ t assign a variable to itself.
591
+ # Don' t assign a variable to itself.
623
592
#
624
593
# Dart SDK: >= 3.1.0
625
594
#
626
595
# https://dart.dev/tools/linter-rules/no_self_assignments
627
596
- no_self_assignments
628
597
629
- # Don’ t use wildcard parameters or variables. Code using this will break in the future.
598
+ # Don' t use wildcard parameters or variables. Code using this will break in the future.
630
599
#
631
600
# Dart SDK: >= 3.1.0
632
601
#
0 commit comments