mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #2904 from Pyrohh/clint
[RFC] clint.py stuff Reviewed-by: Florian Walch <florian@fwalch.com>
This commit is contained in:
commit
3ec0ede3a8
9
clint.py
9
clint.py
@ -3070,8 +3070,6 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]):
|
|||||||
'One or more unexpected \\r (^M) found;'
|
'One or more unexpected \\r (^M) found;'
|
||||||
'better to use only a \\n')
|
'better to use only a \\n')
|
||||||
|
|
||||||
sys.stderr.write('Done processing %s\n' % filename)
|
|
||||||
|
|
||||||
|
|
||||||
def PrintUsage(message):
|
def PrintUsage(message):
|
||||||
"""Prints a brief usage string and exits, optionally with an error message.
|
"""Prints a brief usage string and exits, optionally with an error message.
|
||||||
@ -3079,11 +3077,12 @@ def PrintUsage(message):
|
|||||||
Args:
|
Args:
|
||||||
message: The optional error message.
|
message: The optional error message.
|
||||||
"""
|
"""
|
||||||
sys.stderr.write(_USAGE)
|
|
||||||
if message:
|
if message:
|
||||||
|
sys.stderr.write(_USAGE)
|
||||||
sys.exit('\nFATAL ERROR: ' + message)
|
sys.exit('\nFATAL ERROR: ' + message)
|
||||||
else:
|
else:
|
||||||
sys.exit(1)
|
sys.stdout.write(_USAGE)
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
def PrintCategories():
|
def PrintCategories():
|
||||||
@ -3091,7 +3090,7 @@ def PrintCategories():
|
|||||||
|
|
||||||
These are the categories used to filter messages via --filter.
|
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)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@ file(GLOB_RECURSE LINT_FILES ${LINT_DIR}/*.c ${LINT_DIR}/*.h)
|
|||||||
if(LINT_IGNORE_FILE)
|
if(LINT_IGNORE_FILE)
|
||||||
file(READ ${LINT_IGNORE_FILE} LINT_IGNORED_FILES)
|
file(READ ${LINT_IGNORE_FILE} LINT_IGNORED_FILES)
|
||||||
string(REPLACE "\n" ";" LINT_IGNORED_FILES ${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})
|
foreach(ignore_file ${LINT_IGNORED_FILES})
|
||||||
message(STATUS "${ignore_file}")
|
|
||||||
list(REMOVE_ITEM LINT_FILES "${LINT_PREFIX}/${ignore_file}")
|
list(REMOVE_ITEM LINT_FILES "${LINT_PREFIX}/${ignore_file}")
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user