diff --git a/CHANGELOG.md b/CHANGELOG.md index b1c323a..ff71afa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.2.0-wip + +- Added `collection_methods_unrelated_type` to core (available since 2.19). +- Removed `iterable_contains_unrelated_type` from core (deprecated in 3.1). +- Removed `list_remove_unrelated_type` from core (deprecated in 3.1). + ## 2.1.1 - Added the `analysis` and `lints` topics to the pubspec file. diff --git a/README.md b/README.md index d661b92..ac3a618 100644 --- a/README.md +++ b/README.md @@ -109,13 +109,12 @@ To use these lints create an `analysis_options.yaml` file with: | [`await_only_futures`](https://dart.dev/lints/await_only_futures) | Await only futures. | | [`camel_case_extensions`](https://dart.dev/lints/camel_case_extensions) | Name extensions using UpperCamelCase. | | [`camel_case_types`](https://dart.dev/lints/camel_case_types) | Name types using UpperCamelCase. | +| [`collection_methods_unrelated_type`](https://dart.dev/lints/collection_methods_unrelated_type) | Invocation of various collection methods with arguments of unrelated types. | | [`curly_braces_in_flow_control_structures`](https://dart.dev/lints/curly_braces_in_flow_control_structures) | DO use curly braces for all flow control structures. | | [`depend_on_referenced_packages`](https://dart.dev/lints/depend_on_referenced_packages) | Depend on referenced packages. | | [`empty_catches`](https://dart.dev/lints/empty_catches) | Avoid empty catch blocks. | | [`file_names`](https://dart.dev/lints/file_names) | Name source files using `lowercase_with_underscores`. | | [`hash_and_equals`](https://dart.dev/lints/hash_and_equals) | Always override `hashCode` if overriding `==`. | -| [`iterable_contains_unrelated_type`](https://dart.dev/lints/iterable_contains_unrelated_type) | Invocation of Iterable.contains with references of unrelated types. | -| [`list_remove_unrelated_type`](https://dart.dev/lints/list_remove_unrelated_type) | Invocation of `remove` with references of unrelated types. | | [`no_duplicate_case_values`](https://dart.dev/lints/no_duplicate_case_values) | Don't use more than one case with same value. | | [`non_constant_identifier_names`](https://dart.dev/lints/non_constant_identifier_names) | Name non-constant identifiers using lowerCamelCase. | | [`null_check_on_nullable_type_parameter`](https://dart.dev/lints/null_check_on_nullable_type_parameter) | Don't use null check on a potentially nullable type parameter. | diff --git a/lib/core.yaml b/lib/core.yaml index ec6fff7..32a9a20 100644 --- a/lib/core.yaml +++ b/lib/core.yaml @@ -13,13 +13,12 @@ linter: - await_only_futures - camel_case_extensions - camel_case_types + - collection_methods_unrelated_type - curly_braces_in_flow_control_structures - depend_on_referenced_packages - empty_catches - file_names - hash_and_equals - - iterable_contains_unrelated_type - - list_remove_unrelated_type - no_duplicate_case_values - non_constant_identifier_names - null_check_on_nullable_type_parameter diff --git a/pubspec.yaml b/pubspec.yaml index 1f79b0f..8bb6f82 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: lints -version: 2.1.1 +version: 2.2.0-wip description: > Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team.