Closed (fixed)
Project:
Documentation
Component:
Developer Guide
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2005 at 04:10 UTC
Updated:
19 Nov 2005 at 07:40 UTC
Jump to comment: Most recent file
The coding standards recommend two different methods of inserting header comment blocks:
- http://drupal.org/node/318 (Coding standards page) recommends: /* $Id$ */
- http://drupal.org/node/546 (Header comment blocks page) recommends: // $Id$
I checked the files in core, and it seems that the // $Id$ notation is more common, so is probably supposed to be the standard followed? If that's the case, 318 should probably be updated to reflect this since that appears on the surface at least to be an "all-in-one" document for coding standards... I would guess that most users don't even hit the second page. But in either case, it would be nice to know which method is preferred.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | CODING_STANDARDS.html.patch | 771 bytes | webchick |
Comments
Comment #1
webchickI noticed today that all the files in core are now changed to the // $Id$ style for consistency, so the fix for this issue would be:
http://drupal.org/node/318
Change:
to:
and:
to:
Comment #2
cel4145 commentedIt appears that the particular handbook page in question uses php to pull the coding standards from a location in Drupal CVS:
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/CODING_STA...
Could someone with CVS access implement this update to the coding standards text?
Comment #3
webchickHey cool! Something I can actually do! :D Updated.
Comment #4
webchickActually that didn't seem to work. http://drupal.org/node/318 still shows the "old way."
Attached is the patch I used to change the CODING_STANDARDS.html file in CVS. Could someone with permissions change the handbook page?
Comment #5
drewish commentedPatch does what it says, +1.
Comment #6
dries commentedThis has been fixed.
Comment #7
(not verified) commented