X Tutup
Skip to content

Commit 01e6b8c

Browse files
committed
fix(build): ignore dart warnings The name … is shown, but not used
See #8044 Closes #8045
1 parent 60727c4 commit 01e6b8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/build/dartanalyzer.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ _AnalyzerOutputLine.prototype = {
199199
if (this.isHint && this.sourcePath.match(/generated/i)) {
200200
return true;
201201
}
202+
203+
if (this.errorCode.match(/UNUSED_SHOWN_NAME/i)) {
204+
// TODO: Narrow this ignore down to test code only.
205+
// See https://github.com/angular/angular/issues/8044
206+
return true;
207+
}
202208
return false;
203209
},
204210

0 commit comments

Comments
 (0)
X Tutup