Maarten ter Huurne wrote, On 03/13/2010 02:58 AM:
On Friday 12 March 2010, Sarah Strong wrote:
Proposed output:
************* Module Kontroller
W: 9: Bad indentation. Found 2 spaces, expected 4
W: 10: Bad indentation. Found 2 spaces, expected 4
W: 11: Bad indentation. Found 2 spaces, expected 4
W: 12: Bad indentation. Found 2 spaces, expected 4
[4 more Bad indentation messages, use --unabridged to display them all]
In addition to avoiding discouragment of new users, it makes the more
serious problems stand out more because they are not lost in a sea of
repeated warnings. If pylint finds a bug on the first run it makes a good
first impression on the user.
I would like to add the following (obvious) observations:
We could do more to make sure the user (by default) sees the most
important and serious errors. Showing few lines with each message as
suggested (or even just one unless -v is specified) could help. Showing
errors before (or after) warnings (and style issues) - and making clear
what is what - could also help.
We could also make it easier and more obvious how the user can disable a
warning if he don't care about it. That might be a better solution to
too verbose output. For example, in the example it could show "W0311" by
default and let the command line argument -W0311 disable it.
Showing strings like W0311 also gives the novice user something that is
(or will be) googlable and thus makes it easy to find more info - as
suggested and requested.
I agree that not showing the very verbose and vertical-space-consuming
statistics also would help.
Pylint has a lot of options to controlling the behaviour and output. But
it is my experience that there are so many that they are very hard to
find and use correctly.
/Mads
(contributor of few patches long time ago)
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects