mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
clint: use stdout for normal/expected output (#8700)
This commit is contained in:
committed by
Justin M. Keyes
parent
336ce02a6e
commit
378d5f0fa3
10
src/clint.py
10
src/clint.py
@@ -571,10 +571,10 @@ class _CppLintState(object):
|
|||||||
def PrintErrorCounts(self):
|
def PrintErrorCounts(self):
|
||||||
"""Print a summary of errors by category, and the total."""
|
"""Print a summary of errors by category, and the total."""
|
||||||
for category, count in self.errors_by_category.items():
|
for category, count in self.errors_by_category.items():
|
||||||
sys.stderr.write('Category \'%s\' errors found: %d\n' %
|
sys.stdout.write('Category \'%s\' errors found: %d\n' %
|
||||||
(category, count))
|
(category, count))
|
||||||
if self.error_count:
|
if self.error_count:
|
||||||
sys.stderr.write('Total errors found: %d\n' % self.error_count)
|
sys.stdout.write('Total errors found: %d\n' % self.error_count)
|
||||||
|
|
||||||
def SuppressErrorsFrom(self, fname):
|
def SuppressErrorsFrom(self, fname):
|
||||||
"""Open file and read a list of suppressed errors from it"""
|
"""Open file and read a list of suppressed errors from it"""
|
||||||
@@ -821,13 +821,13 @@ def Error(filename, linenum, category, confidence, message):
|
|||||||
if _ShouldPrintError(category, confidence, linenum):
|
if _ShouldPrintError(category, confidence, linenum):
|
||||||
_cpplint_state.IncrementErrorCount(category)
|
_cpplint_state.IncrementErrorCount(category)
|
||||||
if _cpplint_state.output_format == 'vs7':
|
if _cpplint_state.output_format == 'vs7':
|
||||||
sys.stderr.write('%s(%s): %s [%s] [%d]\n' % (
|
sys.stdout.write('%s(%s): %s [%s] [%d]\n' % (
|
||||||
filename, linenum, message, category, confidence))
|
filename, linenum, message, category, confidence))
|
||||||
elif _cpplint_state.output_format == 'eclipse':
|
elif _cpplint_state.output_format == 'eclipse':
|
||||||
sys.stderr.write('%s:%s: warning: %s [%s] [%d]\n' % (
|
sys.stdout.write('%s:%s: warning: %s [%s] [%d]\n' % (
|
||||||
filename, linenum, message, category, confidence))
|
filename, linenum, message, category, confidence))
|
||||||
else:
|
else:
|
||||||
sys.stderr.write('%s:%s: %s [%s] [%d]\n' % (
|
sys.stdout.write('%s:%s: %s [%s] [%d]\n' % (
|
||||||
filename, linenum, message, category, confidence))
|
filename, linenum, message, category, confidence))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user