[Home]

Summary:ASTERISK-04620: [patch] CODING-GUIDELINES: tabsize 4, spaces for alignment of in-line comments, explanation of indent parameters
Reporter:Frank Sautter (xylome)Labels:
Date Opened:2005-07-19 11:31:10Date Closed:2008-01-15 15:41:54.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Documentation
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) codingGuidelines.txt
Description:when browsing through asterisk code it seems obvious that some people are using tabsize 4 and other tabsize 8, although it is said in the coding guidlines to use tabsize 4, but this is hidden in the indent statement which is given as example.
therefore:
* explicitly tell the people to us tabsize 4
* use of space when aligning in-line comments. this makes the comments aligned even if someone disobeyed tabsize 4.
* make the indent parameters human readable, so they don't have to be looked up in the man page
Comments:By: Frank Sautter (xylome) 2005-07-19 11:33:57

category should be 'REAME files'

By: Russell Bryant (russell) 2005-07-19 11:36:10

if you're supposed to use tabs ... why does the tab size that you view the code matter?

By: Clod Patry (junky) 2005-07-19 11:42:51

AND always use tabs anyways.

By: Russell Bryant (russell) 2005-07-19 13:52:28

added to cvs head, except for the line about tab size.

By: Digium Subversion (svnbot) 2008-01-15 15:41:53.000-0600

Repository: asterisk
Revision: 6163

U   trunk/doc/CODING-GUIDELINES

------------------------------------------------------------------------
r6163 | russell | 2008-01-15 15:41:53 -0600 (Tue, 15 Jan 2008) | 2 lines

update guidelines to explain indent parameteres (bug ASTERISK-4620)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=6163