@@ -269,7 +269,9 @@ abstract class FormatChecker {
269269 ...types,
270270 ]);
271271 }
272- return output.split ('\n ' ).where ((String line) => line.isNotEmpty).toList ();
272+ return output.split ('\n ' ).where (
273+ (String line) => line.isNotEmpty && ! line.contains ('third_party' )
274+ ).toList ();
273275 }
274276
275277 /// Generates a reporting function to supply to ProcessRunner to use instead
@@ -285,7 +287,7 @@ abstract class FormatChecker {
285287 final String pendingStr = pending.toString ().padLeft (3 );
286288 final String failedStr = failed.toString ().padLeft (3 );
287289
288- stderr .write ('$name Jobs: $percent % done, '
290+ stdout .write ('$name Jobs: $percent % done, '
289291 '$completedStr /$totalStr completed, '
290292 '$inProgressStr in progress, '
291293 '$pendingStr pending, '
@@ -296,7 +298,7 @@ abstract class FormatChecker {
296298 /// Clears the last printed report line so garbage isn't left on the terminal.
297299 @protected
298300 void reportDone () {
299- stderr .write ('\r ${' ' * 100 }\r ' );
301+ stdout .write ('\r ${' ' * 100 }\r ' );
300302 }
301303}
302304
@@ -436,7 +438,7 @@ class ClangFormatChecker extends FormatChecker {
436438 } else {
437439 error ('Found ${failed .length } C++/ObjC/Shader file${plural ? 's' : '' }'
438440 ' which ${plural ? 'were' : 'was' } formatted incorrectly.' );
439- stdout.writeln ('To fix, run:' );
441+ stdout.writeln ('To fix, run `et format` or :' );
440442 stdout.writeln ();
441443 stdout.writeln ('git apply <<DONE' );
442444 for (final WorkerJob job in failed) {
@@ -594,7 +596,7 @@ class JavaFormatChecker extends FormatChecker {
594596 } else {
595597 error ('Found ${failed .length } Java file${plural ? 's' : '' }'
596598 ' which ${plural ? 'were' : 'was' } formatted incorrectly.' );
597- stdout.writeln ('To fix, run:' );
599+ stdout.writeln ('To fix, run `et format` or :' );
598600 stdout.writeln ();
599601 stdout.writeln ('git apply <<DONE' );
600602 for (final WorkerJob job in failed) {
@@ -727,7 +729,7 @@ class GnFormatChecker extends FormatChecker {
727729 } else {
728730 error ('Found ${failed .length } GN file${plural ? 's' : '' }'
729731 ' which ${plural ? 'were' : 'was' } formatted incorrectly.' );
730- stdout.writeln ('To fix, run:' );
732+ stdout.writeln ('To fix, run `et format` or :' );
731733 stdout.writeln ();
732734 stdout.writeln ('git apply <<DONE' );
733735 for (final WorkerJob job in failed) {
@@ -822,7 +824,12 @@ class PythonFormatChecker extends FormatChecker {
822824 } else {
823825 error ('Found ${incorrect .length } python file${plural ? 's' : '' }'
824826 ' which ${plural ? 'were' : 'was' } formatted incorrectly:' );
825- incorrect.forEach (stderr.writeln);
827+ stdout.writeln ('To fix, run `et format` or:' );
828+ stdout.writeln ();
829+ stdout.writeln ('git apply <<DONE' );
830+ incorrect.forEach (stdout.writeln);
831+ stdout.writeln ('DONE' );
832+ stdout.writeln ();
826833 }
827834 } else {
828835 message ('All python files formatted correctly.' );
@@ -1129,7 +1136,7 @@ Future<int> main(List<String> arguments) async {
11291136 message ?? = '' ;
11301137 switch (type) {
11311138 case MessageType .message:
1132- stderr .writeln (message);
1139+ stdout .writeln (message);
11331140 case MessageType .error:
11341141 stderr.writeln ('ERROR: $message ' );
11351142 case MessageType .warning:
@@ -1160,11 +1167,7 @@ Future<int> main(List<String> arguments) async {
11601167 message ('Unable to apply $humanCheckName format fixes.' );
11611168 }
11621169 } else {
1163- message ('Performing $humanCheckName format check' );
11641170 stepResult = await checker.checkFormatting ();
1165- if (! stepResult) {
1166- message ('Found $humanCheckName format problems.' );
1167- }
11681171 }
11691172 result = result && stepResult;
11701173 }
0 commit comments