diff options
author | James McCoy <jamessan@jamessan.com> | 2017-01-13 20:47:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-13 20:47:41 -0500 |
commit | 947f1ebcb93ea0f836f3e81ab9365d8539dcf5e5 (patch) | |
tree | bf959d0f35ad1a82cbe7ae6dc96042e443871398 | |
parent | f68663542037aaa4ae954aacae7adf2e88b151d5 (diff) | |
parent | 0aa1cff604163ce2b1bf4ee6cb5133fc1f70bd38 (diff) | |
download | rneovim-947f1ebcb93ea0f836f3e81ab9365d8539dcf5e5.tar.gz rneovim-947f1ebcb93ea0f836f3e81ab9365d8539dcf5e5.tar.bz2 rneovim-947f1ebcb93ea0f836f3e81ab9365d8539dcf5e5.zip |
Merge pull request #5941 from blueyed/better-clint-note
src/clint.py: improve "Ignoring" message
-rwxr-xr-x | src/clint.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clint.py b/src/clint.py index e0f4d3eec5..0c9f55c71e 100755 --- a/src/clint.py +++ b/src/clint.py @@ -3434,8 +3434,9 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]): # When reading from stdin, the extension is unknown, so no cpplint tests # should rely on the extension. if filename != '-' and file_extension not in _valid_extensions: - sys.stderr.write('Ignoring %s; not a valid file name ' - '(%s)\n' % (filename, ', '.join(_valid_extensions))) + sys.stderr.write('Ignoring {}; only linting {} files\n'.format( + filename, + ', '.join('.{}'.format(ext) for ext in _valid_extensions))) else: ProcessFileData(filename, file_extension, lines, Error, extra_check_functions) |