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