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:
- Install Flutter 3.13/Dart 3.1
- Open
analysis_options.yaml
- Scroll down to linter rules
- 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.