Skip to content
This repository was archived by the owner on Jul 13, 2019. It is now read-only.

Make output appear in the Visual Studio Error List #10

Merged
merged 2 commits into from
Apr 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ install:
script:
- python cpplint_unittest.py
- pyflakes cpplint.py
- pyflakes cpplint_unittest.py
- pyflakes cpplint_unittest.py
- python cpplint.py --help
4 changes: 2 additions & 2 deletions cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ def Error(filename, linenum, category, confidence, message):
if _ShouldPrintError(category, confidence, linenum):
_cpplint_state.IncrementErrorCount(category)
if _cpplint_state.output_format == 'vs7':
sys.stderr.write('%s(%s): %s [%s] [%d]\n' % (
sys.stderr.write('%s(%s): warning: %s [%s] [%d]\n' % (
filename, linenum, message, category, confidence))
elif _cpplint_state.output_format == 'eclipse':
sys.stderr.write('%s:%s: warning: %s [%s] [%d]\n' % (
Expand Down Expand Up @@ -6253,7 +6253,7 @@ def PrintUsage(message):
if message:
sys.exit('\nFATAL ERROR: ' + message)
else:
sys.exit(1)
sys.exit(0)


def PrintCategories():
Expand Down