Revert "don't disable TODO issues in IDEs (#23274)" (#23297)

Devon asked me to revert commit c4d1b31b74.

Merging on red to fix the build.
This commit is contained in:
Greg Spencer
2018-10-19 10:03:35 -07:00
committed by GitHub
parent c4d1b31b74
commit 2000583ed3
4 changed files with 9 additions and 26 deletions

View File

@@ -87,8 +87,7 @@ class AnalyzeOnce extends AnalyzeBase {
}
});
server.onErrors.listen((FileAnalysisErrors fileErrors) {
// Record the issues found (but filter out to do comments).
errors.addAll(fileErrors.errors.where((AnalysisError error) => error.type != 'TODO'));
errors.addAll(fileErrors.errors);
});
await server.start();
@@ -149,9 +148,9 @@ class AnalyzeOnce extends AnalyzeBase {
final int errorCount = errors.length;
printStatus('');
if (undocumentedMembers > 0) {
throwToolExit('$errorCount ${pluralize('issue', errorCount)} found (ran in ${seconds}s; $dartdocMessage).');
throwToolExit('$errorCount ${pluralize('issue', errorCount)} found. (ran in ${seconds}s; $dartdocMessage)');
} else {
throwToolExit('$errorCount ${pluralize('issue', errorCount)} found (ran in ${seconds}s).');
throwToolExit('$errorCount ${pluralize('issue', errorCount)} found. (ran in ${seconds}s)');
}
}