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

@@ -231,7 +231,7 @@ linter:
errors.add(null);
errors.addAll(await process.stdout.transform<String>(utf8.decoder).transform<String>(const LineSplitter()).toList());
// top is stderr
if (errors.isNotEmpty && (errors.first.contains(' issues found (ran in ') || errors.first.contains(' issue found (ran in '))) {
if (errors.isNotEmpty && (errors.first.contains(' issues found. (ran in ') || errors.first.contains(' issue found. (ran in '))) {
errors.removeAt(0); // the "23 issues found" message goes onto stderr, which is concatenated first
if (errors.isNotEmpty && errors.last.isEmpty)
errors.removeLast(); // if there's an "issues found" message, we put a blank line on stdout before it