diff options
author | Daniel Hahler <git@thequod.de> | 2017-01-13 22:19:47 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2017-01-13 22:19:47 +0100 |
commit | 0aa1cff604163ce2b1bf4ee6cb5133fc1f70bd38 (patch) | |
tree | bf959d0f35ad1a82cbe7ae6dc96042e443871398 | |
parent | f68663542037aaa4ae954aacae7adf2e88b151d5 (diff) | |
download | rneovim-0aa1cff604163ce2b1bf4ee6cb5133fc1f70bd38.tar.gz rneovim-0aa1cff604163ce2b1bf4ee6cb5133fc1f70bd38.tar.bz2 rneovim-0aa1cff604163ce2b1bf4ee6cb5133fc1f70bd38.zip |
src/clint.py: improve "Ignoring" message
It was a bit confusing for me when seeing it myself the first time.
[ci skip]
-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) |