Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4140405

Browse files
committed
fix(build): ignore Dart warnings for external code.
1 parent f4e6994 commit 4140405

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/build/dartanalyzer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ _AnalyzerOutputLine.prototype = {
200200
return true;
201201
}
202202

203+
// Don't worry about warnings in external code.
204+
if (this.sourcePath.match(/benchmarks_external/i)) {
205+
return true;
206+
}
207+
203208
if (this.errorCode.match(/UNUSED_SHOWN_NAME/i)) {
204209
// TODO: Narrow this ignore down to test code only.
205210
// See https://github.com/angular/angular/issues/8044

0 commit comments

Comments
 (0)