Skip to content

Commit

Permalink
Merge pull request google#184 from LukeCz/stdout
Browse files Browse the repository at this point in the history
Cpplint is unnecessarily polluting stderr
  • Loading branch information
eglaysher authored Sep 29, 2016
2 parents 389efa2 + e09f478 commit aa8ccb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpplint/cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ def PrintErrorCounts(self):
for category, count in self.errors_by_category.iteritems():
sys.stderr.write('Category \'%s\' errors found: %d\n' %
(category, count))
sys.stderr.write('Total errors found: %d\n' % self.error_count)
sys.stdout.write('Total errors found: %d\n' % self.error_count)

_cpplint_state = _CppLintState()

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

sys.stderr.write('Done processing %s\n' % filename)
sys.stdout.write('Done processing %s\n' % filename)
_RestoreFilters()


Expand Down

0 comments on commit aa8ccb4

Please sign in to comment.