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

from
subject
[Python-projects] Couple of false alarms in pylint 0.1.2
date
2003/07/10 10:52
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---

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. :-)

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


has reply