Message107861
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? |
|
| Date |
User |
Action |
Args |
| 2010-06-15 10:08:19 | eric.araujo | set | recipients:
+ eric.araujo, brett.cannon, mark.dickinson, belopolsky, pitrou |
| 2010-06-15 10:08:19 | eric.araujo | set | messageid: <1276596499.17.0.126013745184.issue8912@psf.upfronthosting.co.za> |
| 2010-06-15 10:08:16 | eric.araujo | link | issue8912 messages |
| 2010-06-15 10:08:12 | eric.araujo | create | |
|