VeryGoodOpenSource/very_good_analysis

fix: remove deprecated iterable/list unrelated type rules

Closed this issue · 0 comments

Describe the bug
With Flutter 3.13/Dart 3.1, the iterable_contains_unrelated_type and list_remove_unrelated_type rules were deprecated.

'iterable_contains_unrelated_type' is deprecated and should be replaced by 'collection_methods_unrelated_type'
Try replacing 'iterable_contains_unrelated_type' with 'collection_methods_unrelated_type'.

'list_remove_unrelated_type' is deprecated and should be replaced by 'collection_methods_unrelated_type'
Try replacing 'list_remove_unrelated_type' with 'collection_methods_unrelated_type'.

To Reproduce
Steps to reproduce the behavior:

  1. Install Flutter 3.13/Dart 3.1
  2. Open analysis_options.yaml
  3. Scroll down to linter rules
  4. See analyser server infos

Expected behavior
As the rules was merged into already defined collection_methods_unrelated_type, both iterable_contains_unrelated_type and list_remove_unrelated_type could be removed.