From 0aa1cff604163ce2b1bf4ee6cb5133fc1f70bd38 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 13 Jan 2017 22:19:47 +0100 Subject: src/clint.py: improve "Ignoring" message It was a bit confusing for me when seeing it myself the first time. [ci skip] --- src/clint.py | 5 +++-- 1 file 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) -- cgit