Closed (fixed)
Project:
Google Highly Open Participation Contest (GHOP)
Component:
Task idea
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2008 at 05:24 UTC
Updated:
11 Jan 2008 at 18:05 UTC
coder_format.inc that is ready to be committed. To clarify in advance: not a patch against Drupal core -- Patch files against Drupal core are only needed to communicate the current results/errors of coder_format in this issue.--batch-replace argument. See inline documentation in coder_format.php for further information.For the sake of completeness I'm adding a patch file against Drupal 6 core that is the result of coder_format. It's about 1,5 MB, so I needed to zip it. You will discover the first formatting error in drupal_urlencode() which leads to wrong indents in all following lines. Furthermore, the patch would be dramatically smaller, if there was a post-processor that removed any white-space from all lines containing only white-space (this is one of the needed improvements).
| Comment | File | Size | Author |
|---|---|---|---|
| drupal-6.zip | 357.04 KB | sun |
Comments
Comment #1
aclight commentedThe description of the task is clear and specific. My only concern is whether this is possible to do on 1 week (keeping in mind that students have class, homework, etc.) I'm not familiar with the coder_format module, so it's hard for me to judge how much work would be required for this to work. If you are pretty confident that a student can get this done in time then go ahead and create an official task for this.
Comment #2
webchickSound exciting. I second aclight's comment.
Also, we should probably mention http://cvs.drupal.org/viewvc.py/drupal/contributions/CODING_STANDARDS.ht... which is far more up to date than the handbook page (unfortunately :\). It usually isn't a big deal if there are minor discrepancies for other tasks, but for this one (since it deals with source code quality in modules), it is.
Comment #3
sunWell, I also elaborated on this question. It took me approx. one week to write coder_format, and given the limited scope of this GHOP task, I think it should be doable to fix the remaining errors regarding Drupal core (at least) within one week, too.
FYI: After all, there will be still some contrib modules (f.e. eCommerce) that use even more ill syntax than Drupal core...
Please bear in mind that coder_format is already performing quite well. So the referenced resources about coding standards are only necessary to find out how something should look like if there are any wrong formattings. At least for me, it is quite hard to believe that the attached patch is already based on a completely re-formatted Drupal core, which means that all files have been re-written by coder_format. (Insane, isn't it?! *g*)
Pre- and post-processors are already part of the script, so the mentioned post-processor for cleaning up lines containing only white-space is definitely not a big deal. Also, the mentioned bug in
drupal_urlencode()is clearly caused by the pre-processorcoder_preprocessor_inline_comment().Admittedly, probably unlike other tasks, this task is a pure debugging job. However, I'd propose to add it to the queue, and let's just see if one of the students feels like .
Additionally, I'd like to mention that I will support the claiming student in all possible ways.
Comment #4
aclight commentedSounds good to me. Go ahead and taskify it according to http://groups.drupal.org/node/7360#tasks
If you're not a member of the Google GHOP project group on google, you won't be able to set the status of the task or clean up the tags. You can either contact one of the admins (IRC, contact tab, etc.) and give us your google account so we can add you, of just submit the task to the google tracker and one of us will clean up the tags, etc. for you.
Comment #5
sunNew issue: http://drupal.org/node/208767
There's no one online who could add me as a project member at Google currently.
Comment #6
aclight commented@sun: You can go ahead and add your issue at any time, but you won't be able to change tags on it or set it to open. I will likely be available on IRC most of the day today (aclight) so you can ping or pm me and shoot me your google account and I'll add you as a member.
Comment #7
aclight commentedThis has been created as an official GHOP task.
The related drupal issue is at: http://drupal.org/node/208767
The GHOP task is at: http://code.google.com/p/google-highly-open-participation-drupal/issues/...