fix(build): ignore Dart warnings for external code.

This commit is contained in:
Tobias Bosch 2016-04-19 07:59:16 -07:00
parent f4e6994634
commit 41404057cf
1 changed files with 5 additions and 0 deletions

View File

@ -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