Skip to content

Commit 5fab0bb

Browse files
parloughCommit Queue
authored andcommitted
[analyzer] Remove deprecated LintRule.categories
This field has been deprecated for a while and is no longer specified by any public lint rules. Change-Id: Ic5ce4f29661f46d4bf9b3ed58f06d7c262090bbd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/424220 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 692b582 commit 5fab0bb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/analyzer/lib/src/lint/linter.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ abstract class LintRule {
185185
/// Short description suitable for display in console output.
186186
final String description;
187187

188-
/// Deprecated field of lint groups (for example, 'style', 'errors', 'pub').
189-
@Deprecated('Lint rule categories are no longer used.')
190-
final Set<String> categories;
191-
192188
/// Lint name.
193189
final String name;
194190

@@ -197,8 +193,6 @@ abstract class LintRule {
197193

198194
LintRule({
199195
required this.name,
200-
@Deprecated('Lint rule categories are no longer used. Remove the argument.')
201-
this.categories = const <String>{},
202196
required this.description,
203197
this.state = const State.stable(),
204198
});

0 commit comments

Comments
 (0)