Skip to content

Commit e09f478

Browse files
committed
Cpplint is unnecessarily polluting stderr
1 parent 1342002 commit e09f478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpplint/cpplint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ def PrintErrorCounts(self):
909909
for category, count in self.errors_by_category.iteritems():
910910
sys.stderr.write('Category \'%s\' errors found: %d\n' %
911911
(category, count))
912-
sys.stderr.write('Total errors found: %d\n' % self.error_count)
912+
sys.stdout.write('Total errors found: %d\n' % self.error_count)
913913

914914
_cpplint_state = _CppLintState()
915915

@@ -6004,7 +6004,7 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]):
60046004
Error(filename, linenum, 'whitespace/newline', 1,
60056005
'Unexpected \\r (^M) found; better to use only \\n')
60066006

6007-
sys.stderr.write('Done processing %s\n' % filename)
6007+
sys.stdout.write('Done processing %s\n' % filename)
60086008
_RestoreFilters()
60096009

60106010

0 commit comments

Comments
 (0)