From 69672965cabf5f31d3f17c2095ba9685deafb0a8 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Wed, 15 Oct 2014 14:30:13 +0300 Subject: Add new '-j' option for running checks in sub-processes. Patch by Michal Nowikowski. --- ChangeLog | 2 + doc/Makefile | 2 +- doc/run.rst | 27 ++++++- lint.py | 188 ++++++++++++++++++++++++++++++++++++++++++++-- reporters/__init__.py | 15 +++- test/test_import_graph.py | 1 + test/test_self.py | 9 ++- test/unittest_lint.py | 27 ++++--- utils.py | 4 + 9 files changed, 252 insertions(+), 23 deletions(-) diff --git a/ChangeLog b/ChangeLog index bdd3ec5..0b12ace 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,8 @@ ChangeLog for Pylint wrong-spelling-in-comment, wrong-spelling-in-docstring. New options: spelling-dict, spelling-ignore-words. + * Add new '-j' option for running checks in sub-processes. + * Added new checks for line endings if they are mixed (LF vs CRLF) or if they are not as expected. New messages: mixed-line-endings, unexpected-line-ending-format. New option: expected-line-ending-format. diff --git a/doc/Makefile b/doc/Makefile index 98076a6..d483f63 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -12,7 +12,7 @@ PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . -.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest all help: @echo "Please use \`make ' where is one of" diff --git a/doc/run.rst b/doc/run.rst index d4a2aa9..f8a65e2 100644 --- a/doc/run.rst +++ b/doc/run.rst @@ -90,7 +90,7 @@ expression in special cases). For a full list of options, use ``--help`` Specifying all the options suitable for your setup and coding standards can be tedious, so it is possible to use a configuration file to -specify the default values. You can specify a configuration file on the +specify the default values. You can specify a configuration file on the command line using the ``--rcfile`` option. Otherwise, Pylint searches for a configuration file in the following order and uses the first one it finds: @@ -117,7 +117,7 @@ includes: * Options appearing before ``--generate-rcfile`` on the Pylint command line Of course you can also start with the default values and hand tune the -configuration. +configuration. Other useful global options include: @@ -128,5 +128,26 @@ Other useful global options include: --output-format= Select output format (text, html, custom). --msg-template=