Index: pkg/analysis_server/lib/src/services/linter/linter.dart |
diff --git a/pkg/analysis_server/lib/src/services/linter/linter.dart b/pkg/analysis_server/lib/src/services/linter/linter.dart |
index 964c238d0487f82764e632848baa60603e9969b8..89dd0c849da979dddf42d8692522796735f35c96 100644 |
--- a/pkg/analysis_server/lib/src/services/linter/linter.dart |
+++ b/pkg/analysis_server/lib/src/services/linter/linter.dart |
@@ -6,7 +6,7 @@ library services.src.linter; |
import 'package:analyzer/analyzer.dart'; |
import 'package:analyzer/plugin/options.dart'; |
-import 'package:linter/src/rules.dart'; |
+import 'package:analyzer/src/lint/registry.dart'; |
import 'package:yaml/yaml.dart'; |
/** |
@@ -38,7 +38,8 @@ class LinterRuleOptionsValidator extends OptionsValidator { |
validateRules(dynamic rules, ErrorReporter reporter) { |
if (rules is YamlList) { |
//TODO(pq): migrate this to a proper API once there is one. |
- Iterable<String> registeredLints = ruleRegistry.map((r) => r.name); |
+ Iterable<String> registeredLints = |
+ Registry.ruleRegistry.map((r) => r.name); |
rules.nodes.forEach((YamlNode ruleNode) { |
Object value = ruleNode.value; |
if (value != null && !registeredLints.contains(value)) { |