You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@corinthia.apache.org by ja...@apache.org on 2015/01/05 21:54:53 UTC

svn commit: r1649658 - /incubator/corinthia/www/policy_coding.html

Author: jani
Date: Mon Jan  5 20:54:53 2015
New Revision: 1649658

URL: http://svn.apache.org/r1649658
Log:
testing code examples

Modified:
    incubator/corinthia/www/policy_coding.html

Modified: incubator/corinthia/www/policy_coding.html
URL: http://svn.apache.org/viewvc/incubator/corinthia/www/policy_coding.html?rev=1649658&r1=1649657&r2=1649658&view=diff
==============================================================================
--- incubator/corinthia/www/policy_coding.html (original)
+++ incubator/corinthia/www/policy_coding.html Mon Jan  5 20:54:53 2015
@@ -54,6 +54,16 @@
 			<p>The goal of this document is to describe what we have agreed to as the basis coding standard, for everything else we simply expect you follow what your experience tell you</p>
 			<p><b>Rules</b> are listed below. If you have suggestions please let us discuss it on our maling list dev@, no rule is set in stone !</p>
 			<h3>Use of indent</h3>
+			<p>In order to make the code aligment identical on all editors, we have 2 simple rules:</p>
+			<ul><li>* do NOT use TABulator in the source files (set the editor to convert it to spaces)</li>
+		            <li>* use 4 spaces for every indent level</li>
+			</ul>
+			<code>
+				if (x == y) {
+				    z = 1;
+				}
+		        </code>
+			<h3>Placement of curly brackets '{'</h3>
 			<p>jan</p>
 	  	</div> 
       </div>