| Index: pkg/testing/lib/src/analyze.dart
|
| diff --git a/pkg/testing/lib/src/analyze.dart b/pkg/testing/lib/src/analyze.dart
|
| index 6106b9ea104db950de9f96f2d2293466312c224d..1a7503aabdb8476cd7a07f90f8190aa96f4b90c6 100644
|
| --- a/pkg/testing/lib/src/analyze.dart
|
| +++ b/pkg/testing/lib/src/analyze.dart
|
| @@ -88,7 +88,8 @@ class AnalyzerDiagnostic {
|
|
|
| String toString() {
|
| return "$uri:$line:$startColumn: "
|
| - "${kind == 'INFO' ? 'warning: hint' : kind.toLowerCase()}:\n$message";
|
| + "${kind == 'INFO' ? 'warning: hint' : kind.toLowerCase()}:\n"
|
| + "[$code] $message";
|
| }
|
| }
|
|
|
| @@ -134,6 +135,9 @@ Future<Null> analyzeUris(
|
| Set<String> seen = new Set<String>();
|
| for (AnalyzerDiagnostic diagnostic in diagnostics) {
|
| String path = diagnostic.uri.path;
|
| + if (diagnostic.code == "DEPRECATED_MEMBER_USE") continue;
|
| + if (diagnostic.code == "MISSING_RETURN") continue;
|
| + if (diagnostic.code == "UNNECESSARY_CAST") continue;
|
| if (exclude.any((RegExp r) => path.contains(r))) continue;
|
| String message = "$diagnostic";
|
| if (seen.add(message)) {
|
|
|