Skip to content

Commit 8a401d1

Browse files
authored
add replacedBy info to point to collection_methods_unrelated_type (dart-archive/linter#4376)
1 parent ce07a5e commit 8a401d1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/src/rules/iterable_contains_unrelated_type.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ class IterableContainsUnrelatedType extends LintRule {
131131
description: _desc,
132132
details: _details,
133133
group: Group.errors,
134-
state: State.deprecated(),
134+
state:
135+
State.deprecated(replacedBy: 'collection_methods_unrelated_type'),
135136
);
136137

137138
@override

lib/src/rules/list_remove_unrelated_type.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ class ListRemoveUnrelatedType extends LintRule {
131131
description: _desc,
132132
details: _details,
133133
group: Group.errors,
134-
state: State.deprecated(),
134+
state:
135+
State.deprecated(replacedBy: 'collection_methods_unrelated_type'),
135136
);
136137

137138
@override

0 commit comments

Comments
 (0)