Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: pkg/analysis_server/lib/src/services/linter/linter.dart

Issue 2553203002: Move the linter core to the analyzer package (Closed)
Patch Set: Add missed files Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)) {

Powered by Google App Engine
This is Rietveld 408576698