[Python-projects] PyLint: option parsing bug
Maarten ter Huurne
maarten.ter.huurne at philips.com
Mon Mar 5 22:04:46 CET 2007
syt at logilab.fr wrote on 2007-03-05 09:58:56 PM:
> [...]
> $ pylint -rn dummy.py --rpython-mode
> Traceback (most recent call last):
> File "/usr/bin/pylint", line 4, in ?
> lint.Run(sys.argv[1:])
> File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 778, in
__init__
> preprocess_options(args, {'rpython-mode': self.cb_rpython_mode,
> File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 758, in
> preprocess_options
> search_for[option](option, args[i + 1])
> IndexError: list index out of range
> ===
>
> > If I specify the options in the right order ("pylint --rpython-mode
-rn
> > dummy.py") it works fine.
>
> But you get reports displayed anyway, no ?
No, PyLint does not run any checks and does not display any reports. It
seems it never gets past the option parsing stage.
Bye,
Maarten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20070305/14d85cd8/attachment.htm
More information about the Python-Projects
mailing list