Unverified Commit bcac1bd5 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Handle the case where there are no missing dartdocs too... (#24801)

parent 9ca129d7
...@@ -21,6 +21,7 @@ Future<void> main() async { ...@@ -21,6 +21,7 @@ Future<void> main() async {
int publicMembers = 0; int publicMembers = 0;
int otherErrors = 0; int otherErrors = 0;
int otherLines = 0; int otherLines = 0;
bool sawFinalLine = false;
await for (String entry in analysis.stdout.transform<String>(utf8.decoder).transform<String>(const LineSplitter())) { await for (String entry in analysis.stdout.transform<String>(utf8.decoder).transform<String>(const LineSplitter())) {
entry = entry.trim(); entry = entry.trim();
print('analyzer stdout: $entry'); print('analyzer stdout: $entry');
...@@ -30,17 +31,17 @@ Future<void> main() async { ...@@ -30,17 +31,17 @@ Future<void> main() async {
publicMembers += 1; publicMembers += 1;
} else if (entry.startsWith('info •') || entry.startsWith('warning •') || entry.startsWith('error •')) { } else if (entry.startsWith('info •') || entry.startsWith('warning •') || entry.startsWith('error •')) {
otherErrors += 1; otherErrors += 1;
} else if (entry.contains(' (ran in ')) { } else if (entry.contains(' (ran in ') && !sawFinalLine) {
// ignore this line // ignore this line once
sawFinalLine = true;
} else if (entry.isNotEmpty) { } else if (entry.isNotEmpty) {
otherLines += 1; otherLines += 1;
print('^ not sure what to do with that line ^'); print('^ not sure what to do with that line ^');
} }
} }
bool sawFinalLine = false;
await for (String entry in analysis.stderr.transform<String>(utf8.decoder).transform<String>(const LineSplitter())) { await for (String entry in analysis.stderr.transform<String>(utf8.decoder).transform<String>(const LineSplitter())) {
print('analyzer stderr: $entry'); print('analyzer stderr: $entry');
if (entry.contains('(ran in ') && !sawFinalLine) { if (entry.contains(' (ran in ') && !sawFinalLine) {
// ignore this line once // ignore this line once
sawFinalLine = true; sawFinalLine = true;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment