| Index: pkg/analyzer/lib/src/lint/registry.dart
|
| diff --git a/pkg/analyzer/lib/src/lint/registry.dart b/pkg/analyzer/lib/src/lint/registry.dart
|
| index 241108baf384df689d3a45ea74d253b75fcfc5c6..24b5e47697bb866b2a0d0eda0e2cc6cb29d34797 100644
|
| --- a/pkg/analyzer/lib/src/lint/registry.dart
|
| +++ b/pkg/analyzer/lib/src/lint/registry.dart
|
| @@ -45,11 +45,6 @@ class Registry extends Object with IterableMixin<LintRule> {
|
| LintRule operator [](String name) => _ruleMap[name];
|
|
|
| /**
|
| - * Return the lint rule with the given [name].
|
| - */
|
| - LintRule getRule(String name) => _ruleMap[name];
|
| -
|
| - /**
|
| * Return a list of the lint rules explicitly enabled by the given [config].
|
| *
|
| * For example:
|
| @@ -63,6 +58,11 @@ class Registry extends Object with IterableMixin<LintRule> {
|
| .where((rule) => config.ruleConfigs.any((rc) => rc.enables(rule.name)));
|
|
|
| /**
|
| + * Return the lint rule with the given [name].
|
| + */
|
| + LintRule getRule(String name) => _ruleMap[name];
|
| +
|
| + /**
|
| * Add the given lint [rule] to this registry.
|
| */
|
| void register(LintRule rule) {
|
|
|