This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients belopolsky, brett.cannon, eric.araujo, mark.dickinson, pitrou
Date 2010-06-15.10:08:12
SpamBayes Score 6.1317856e-05
Marked as misclassified No
Message-id <1276596499.17.0.126013745184.issue8912@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the helpful reviews. I have fixed the trailing whitespace check with “line[-2:-1].isspace()”, but I have a bug with my file counting. Before I go further, I’d like feedback from people using patchcheck:

1) Reindenting Python is a task best handled by reindent.py, but checking for tabs, line length and trailing whitespace is basically a reimplementation of grep and wc. Is it an explicit and important goal that patchcheck.py be independent of external tools?

2) Do you like the current report format? (“checking for one thing: n files”) It requires you to use grep of your editor’s search after checking. What about printing out file names and line numbers?

3) What about a function to strip trailing spaces and add a final newline where needed instead of just complaining? Is it okay to replace tabs with spaces in C too?
History
Date User Action Args
2010-06-15 10:08:19eric.araujosetrecipients: + eric.araujo, brett.cannon, mark.dickinson, belopolsky, pitrou
2010-06-15 10:08:19eric.araujosetmessageid: <1276596499.17.0.126013745184.issue8912@psf.upfronthosting.co.za>
2010-06-15 10:08:16eric.araujolinkissue8912 messages
2010-06-15 10:08:12eric.araujocreate