] > Re: [Python-projects] Couple of false alarms in pylint 0.1.2 (Logilab.org)

Email Re: [Python-projects] Couple of false alarms in pylint 0.1.2

from
subject
Re: [Python-projects] Couple of false alarms in pylint 0.1.2
date
2003/07/11 11:29
On Thursday 10 July à 10:52, Eloranta, Mika wrote:
> Hi, I just tried pylint on some of my code and found a couple of
> false alarms.

> Here's script for reproducing the issues:
> ---clip---
> """
> false alarms from pylint
> """

> __revision__ = 123

> def problem1():
>     """E: 11: column 0 should not be [ ]
>     E: 14: Indent not equal"""
>     if 1:
>         def problem1sub():
>             """dummy"""
>             print "x"
>         problem1sub()
>         
> def problem2():
>     """E: 20: column 0 should not be [ ]"""
>     for xxx in range(10):
>         print xxx
>  print "the first char in this line is a TAB"
> ---clip---

I guess this has been fixed in the CVS since I don't have any error when
I pylint your script.
 
> PS. The idea to give a rating (and the comment like "Could be better...") 
> for the code is a nice one. At least it made me so annoyed that I had to
> fix the code. :-)

next release will provide an option to enable the comment (it'll be
disabled by default ;), . 

regards
-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org

_______________________________________________
Python-projects mailing list
Python-projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects