Closed (fixed)
Project:
Decisions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Feb 2010 at 16:29 UTC
Updated:
18 Feb 2010 at 17:40 UTC
Jump to comment: Most recent file
I noticed a few coding standards issues with spacing and conditional formatting, so I ran coder_format.php and generated this patch. A visual scan of the patch shows it's stylistic and after applying, basic operations (creating a selection poll, voting, canceling a vote) continue to work as expected.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | decisions_code_format_b.patch | 98.28 KB | ezra-g |
| #5 | decisions_code_format_a.patch | 99.11 KB | ezra-g |
| decisions_code_standards.patch | 101.81 KB | ezra-g |
Comments
Comment #1
anarcat commentednot to be nitpicking here: coder_format is cool, but there are some things that don't really work out for me. a lot of lines are added in irrelevant places, like this:
I also don't see why every file should have an extra newline at the end, but if it's the standard, I won't argue.
I am otherwise ready to commit this patch provided the needless newlines are removed.
Comment #2
ezra-g commentedHere's a re-roll that removes the extraneous newlines, leaving in place the ones at the end of each file per the coding standards>, "All text files should end in a single newline (\n). This avoids the verbose "\ No newline at end of file" patch warning and makes patches easier to read since it's clearer what is being changed when lines are added to the end of a file."
Thanks :)
Comment #3
ezra-g commented[deleted dupe comment] - Sorry, I got a 503 upon submission ;)
Comment #4
ezra-g commentedAnd here's the patch, hopefully 503 free...
Comment #5
ezra-g commentedAnd here's the patch, hopefully 503 free...
Comment #6
ezra-g commentedIf you don't hate my dupes by now, here is the correct patch. Sorry about that :).
Comment #7
anarcat commentedchecking this this afternoon, i'd love to get that cleanup in.
Comment #8
anarcat commentedI committed your patch with a few changes in hairy boolean comparisons that were hurting my brain. I also removed those idiotic "end if" things.