From 41404057cf38719d6473158f12b5cbdd22573898 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Tue, 19 Apr 2016 07:59:16 -0700 Subject: [PATCH] fix(build): ignore Dart warnings for external code. --- tools/build/dartanalyzer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/build/dartanalyzer.js b/tools/build/dartanalyzer.js index 53effed077..bcc5ba3bcc 100644 --- a/tools/build/dartanalyzer.js +++ b/tools/build/dartanalyzer.js @@ -200,6 +200,11 @@ _AnalyzerOutputLine.prototype = { return true; } + // Don't worry about warnings in external code. + if (this.sourcePath.match(/benchmarks_external/i)) { + return true; + } + if (this.errorCode.match(/UNUSED_SHOWN_NAME/i)) { // TODO: Narrow this ignore down to test code only. // See https://github.com/angular/angular/issues/8044