| Index: pkg/analyzer/lib/src/task/dart.dart
|
| diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
|
| index d4294dad7f2900c16a19d27fc9e815f750397913..9da51727a93557b03af5f5f0dcf5835d9dab60c5 100644
|
| --- a/pkg/analyzer/lib/src/task/dart.dart
|
| +++ b/pkg/analyzer/lib/src/task/dart.dart
|
| @@ -2572,9 +2572,10 @@ class GenerateLintsTask extends SourceBasedAnalysisTask {
|
| //
|
| // Generate lints.
|
| //
|
| - LintGenerator.LINTERS.forEach((l) => l.reporter = errorReporter);
|
| + List<Linter> linters = lintRegistry[context] ?? [];
|
| + linters.forEach((l) => l.reporter = errorReporter);
|
| Iterable<AstVisitor> visitors =
|
| - LintGenerator.LINTERS.map((l) => l.getVisitor()).toList();
|
| + linters.map((l) => l.getVisitor()).toList();
|
| unit.accept(new DelegatingAstVisitor(visitors.where((v) => v != null)));
|
|
|
| //
|
|
|