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 f45c923d6924b2ae2439fc20678d15a1570f0ffb..ff360386f24a8aec8f976b2285f082673b6cf42e 100644 |
--- a/pkg/analyzer/lib/src/task/dart.dart |
+++ b/pkg/analyzer/lib/src/task/dart.dart |
@@ -2115,11 +2115,21 @@ class DartErrorsTask extends SourceBasedAnalysisTask { |
String inputName = result.name + '_input'; |
errorLists.add(getRequiredInput(inputName)); |
} |
+ |
+ // |
+ // Gather error filters. |
+ // |
+ List<ErrorFilter> filters = |
+ context.getConfigurationData(CONFIGURED_ERROR_FILTERS); |
for (ResultDescriptor result in enginePlugin.dartErrorsForUnit) { |
String inputName = result.name + '_input'; |
Map<Source, List<AnalysisError>> errorMap = getRequiredInput(inputName); |
for (List<AnalysisError> errors in errorMap.values) { |
- errorLists.add(errors); |
+ errorLists.add(errors |
+ .where((AnalysisError error) { |
+ return !filters.any((ErrorFilter filter) => filter(error)); |
+ }) |
+ .toList()); |
} |
} |
// |