diff options
author | Michael Reed <Pyrohh@users.noreply.github.com> | 2015-06-27 15:22:31 -0400 |
---|---|---|
committer | Michael Reed <Pyrohh@users.noreply.github.com> | 2015-06-27 15:22:31 -0400 |
commit | 3ec0ede3a805df1a107a0d68220cde1beeeba386 (patch) | |
tree | 8cf862f57f648921d2ce453129d16bdf14485008 | |
parent | 0cfadce547d78c72cc6214cbe647993721b0eba8 (diff) | |
parent | 3c2fa1767b452a3445068a2806886c90bacbf543 (diff) | |
download | rneovim-3ec0ede3a805df1a107a0d68220cde1beeeba386.tar.gz rneovim-3ec0ede3a805df1a107a0d68220cde1beeeba386.tar.bz2 rneovim-3ec0ede3a805df1a107a0d68220cde1beeeba386.zip |
Merge pull request #2904 from Pyrohh/clint
[RFC] clint.py stuff
Reviewed-by: Florian Walch <florian@fwalch.com>
-rwxr-xr-x | clint.py | 9 | ||||
-rw-r--r-- | cmake/RunLint.cmake | 2 |
2 files changed, 4 insertions, 7 deletions
@@ -3070,8 +3070,6 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]): 'One or more unexpected \\r (^M) found;' 'better to use only a \\n') - sys.stderr.write('Done processing %s\n' % filename) - def PrintUsage(message): """Prints a brief usage string and exits, optionally with an error message. @@ -3079,11 +3077,12 @@ def PrintUsage(message): Args: message: The optional error message. """ - sys.stderr.write(_USAGE) if message: + sys.stderr.write(_USAGE) sys.exit('\nFATAL ERROR: ' + message) else: - sys.exit(1) + sys.stdout.write(_USAGE) + sys.exit(0) def PrintCategories(): @@ -3091,7 +3090,7 @@ def PrintCategories(): These are the categories used to filter messages via --filter. """ - sys.stderr.write(''.join(' %s\n' % cat for cat in _ERROR_CATEGORIES)) + sys.stdout.write(''.join(' %s\n' % cat for cat in _ERROR_CATEGORIES)) sys.exit(0) diff --git a/cmake/RunLint.cmake b/cmake/RunLint.cmake index 35d3f942aa..a6d5a01b50 100644 --- a/cmake/RunLint.cmake +++ b/cmake/RunLint.cmake @@ -5,9 +5,7 @@ file(GLOB_RECURSE LINT_FILES ${LINT_DIR}/*.c ${LINT_DIR}/*.h) if(LINT_IGNORE_FILE) file(READ ${LINT_IGNORE_FILE} LINT_IGNORED_FILES) string(REPLACE "\n" ";" LINT_IGNORED_FILES ${LINT_IGNORED_FILES}) - message(STATUS "Ignoring the following files for linting:") foreach(ignore_file ${LINT_IGNORED_FILES}) - message(STATUS "${ignore_file}") list(REMOVE_ITEM LINT_FILES "${LINT_PREFIX}/${ignore_file}") endforeach() endif() |