Martin Liska
ca44d7f40a
Detect mixed usage of spaces and tabs.
...
2018-11-19 Martin Liska <mliska@suse.cz>
* check_GNU_style_lib.py: Detect mixed usage
of spaces and tabs.
From-SVN: r266261
2018-11-19 08:08:28 +00:00
Tom de Vries
0a71c876a1
check_GNU_style_lib.py: Fix trailing whitespace check
...
2017-05-29 Tom de Vries <tom@codesourcery.com>
* check_GNU_style_lib.py (TrailingWhitespaceCheck.check): Assert no
trailing eol.
(TrailingWhitespaceTest): New unit test.
(check_GNU_style_file): Remove eol before checking.
From-SVN: r248556
2017-05-29 07:31:11 +00:00
Tom de Vries
75017bb975
check_GNU_style.py: Read stdin if file argument is '-'
...
2017-05-29 Tom de Vries <tom@codesourcery.com>
* check_GNU_style_lib.py (check_GNU_style_file): Treat file argument as
file handle. Add and handle file_encoding argument.
* check_GNU_style.py (main): Handle '-' file argument. Call
check_GNU_style_file with file handle as argument.
From-SVN: r248555
2017-05-29 07:31:02 +00:00
Tom de Vries
76baf5ca9d
check_GNU_style_lib.py: Suggest to install all missing pip3 packages at once
...
Instead of:
...
$ ./contrib/check_GNU_style.py
termcolor module is missing (run: pip3 install termcolor)
$ pip3 install termcolor
$ ./contrib/check_GNU_style.py
unidiff module is missing (run: pip3 install unidiff)
$ pip3 install unidiff
$
...
Do:
...
$ ./contrib/check_GNU_style.py
termcolor and unidiff modules are missing (run: pip3 install termcolor unidiff)
$ pip3 install termcolor unidiff
$
...
2017-05-29 Tom de Vries <tom@codesourcery.com>
* check_GNU_style_lib.py: Use import_pip3 to import pip3 packages.
(import_pip3): New function.
From-SVN: r248554
2017-05-29 07:30:47 +00:00
Tom de Vries
b7fc9ae0aa
check_GNU_style.py: print usage if no file specified
...
2017-05-24 Tom de Vries <tom@codesourcery.com>
* check_GNU_style_lib.py: New file, factored out of ...
* check_GNU_style.py: ... here. Call main unconditionally.
From-SVN: r248403
2017-05-24 08:49:56 +00:00