| Index: pkg/analyzer_cli/lib/src/analyzer_impl.dart
|
| diff --git a/pkg/analyzer_cli/lib/src/analyzer_impl.dart b/pkg/analyzer_cli/lib/src/analyzer_impl.dart
|
| index e6f13707d40170bec535ed57c8c5e1cfd4f4a5f3..7314a20729a2ae4001e7021484d81af35b9bfc31 100644
|
| --- a/pkg/analyzer_cli/lib/src/analyzer_impl.dart
|
| +++ b/pkg/analyzer_cli/lib/src/analyzer_impl.dart
|
| @@ -303,6 +303,13 @@ class AnalyzerImpl {
|
| ErrorSeverity severity = computeSeverity(error, options, context);
|
| bool isOverridden = false;
|
|
|
| + // Skip TODOs categorically (unless escalated to ERROR or HINT.)
|
| + // https://github.com/dart-lang/sdk/issues/26215
|
| + if (error.errorCode.type == ErrorType.TODO &&
|
| + severity == ErrorSeverity.INFO) {
|
| + return null;
|
| + }
|
| +
|
| // First check for a filter.
|
| if (severity == null) {
|
| // Null severity means the error has been explicitly ignored.
|
| @@ -317,11 +324,6 @@ class AnalyzerImpl {
|
| if (severity == ErrorSeverity.INFO && options.disableHints) {
|
| return null;
|
| }
|
| -
|
| - // Skip TODOs.
|
| - if (severity == ErrorType.TODO) {
|
| - return null;
|
| - }
|
| }
|
|
|
| return new ProcessedSeverity(severity, isOverridden);
|
|
|