mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Cpplint is unnecessarily polluting stderr
This commit is contained in:
parent
1342002613
commit
e09f478aa8
4
cpplint/cpplint.py
vendored
4
cpplint/cpplint.py
vendored
|
@ -909,7 +909,7 @@ class _CppLintState(object):
|
||||||
for category, count in self.errors_by_category.iteritems():
|
for category, count in self.errors_by_category.iteritems():
|
||||||
sys.stderr.write('Category \'%s\' errors found: %d\n' %
|
sys.stderr.write('Category \'%s\' errors found: %d\n' %
|
||||||
(category, count))
|
(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()
|
_cpplint_state = _CppLintState()
|
||||||
|
|
||||||
|
@ -6004,7 +6004,7 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]):
|
||||||
Error(filename, linenum, 'whitespace/newline', 1,
|
Error(filename, linenum, 'whitespace/newline', 1,
|
||||||
'Unexpected \\r (^M) found; better to use only \\n')
|
'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()
|
_RestoreFilters()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user