0% found this document useful (0 votes)
4 views2 pages

Sample Coding Standards Guidelines

Uploaded by

Monika R
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Sample Coding Standards Guidelines

Uploaded by

Monika R
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Document No: PROG/DOC/00023 Revision A

Sample Coding Standards


Rule_1
Every Function shall have a function header as follows:
/*********************************************************************
* Function Name : <name of the Function>
* Fn Description : <Brief Description of the function>
*
* Author : <Name of the Author>
*
* Modified By : <Name of the Modifier>
*
* Date : <DD-MON-YYYY>
*
*********************************************************************/
Rule_2
Number of Source lines in a function shall be limited to 30 Lines
Rule_3
Source File code lines shall be limited to 500
Rule_4
Length of the line shall not exceed 120 characters
Rule_5
Code indentation shall be limited to 3 characters
Rule_6
Maximum nesting level for a function shall not exceed 3
Rule_7
All Local variable declared in the source code shall start with “l_”
Rule_8
All Global variables declared in the source code shall start with “g_”
Rule_9
Name of the function shall be meaningful to explain the purpose of the function
Rule_10
Source code shall not contain TAB spaces
Document No: PROG/DOC/00023 Revision A

Rule_11
Variable name should be meaningful to understand the purpose.

You might also like