[Genabel-commits] r1223 - www
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri May 17 09:27:46 CEST 2013
Author: lckarssen
Date: 2013-05-17 09:27:46 +0200 (Fri, 17 May 2013)
New Revision: 1223
Modified:
www/codingstyle.html
www/codingstyle.org
Log:
Imported Yurii's comments from the EtherPad draft document.
Modified: www/codingstyle.html
===================================================================
--- www/codingstyle.html 2013-05-16 17:28:50 UTC (rev 1222)
+++ www/codingstyle.html 2013-05-17 07:27:46 UTC (rev 1223)
@@ -7,7 +7,7 @@
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="title" content="GenABEL project coding style guidelines"/>
<meta name="generator" content="Org-mode"/>
-<meta name="generated" content="2013-05-14T00:05+0200"/>
+<meta name="generated" content="2013-05-17T09:25+0200"/>
<meta name="author" content="The GenABEL development team"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
@@ -173,11 +173,14 @@
</li>
<li>a file should always have a newline at the end (Why?)
</li>
-<li>don't use tabs (as everyone seems to have a different setting for the
- tab stop): use spaces. How many spaces is up for debate. Of course
- Makefiles are exempt from this rule as tabs are mandatory
+<li>don't use tabs (as everyone seems to have a different setting for
+ the tab stop): use spaces. How many spaces is up for debate (YA &
+ LCK suggest 4). Of course Makefiles are exempt from this rule as
+ tabs are mandatory
</li>
-<li>no (unnessary) empty lines
+<li>no (unnecessary) empty lines. Empty lines separating (logical)
+ blocks of code are OK, empty lines at the bottom of a file, a
+ function, an if-statement are not.
</li>
</ul>
@@ -312,6 +315,15 @@
<h3 id="sec-5-1"><span class="section-number-3">5.1</span> Eclipse</h3>
<div class="outline-text-3" id="text-5-1">
+<p> This works for Eclipse IDE for C/C++ Developers Juno Service release 2.
+ To replace tabs with spaces go to
+</p><ul>
+<li>Preferences -> C/C++ -> Code Style -> Formatter
+</li>
+<li>Preferences -> StatET -> R code Formatting
+</li>
+</ul>
+
</div>
</div>
@@ -368,7 +380,7 @@
</div>
<div id="postamble">
-<p class="date">Date: 2013-05-14T00:05+0200</p>
+<p class="date">Date: 2013-05-17T09:25+0200</p>
<p class="author">Author: The GenABEL development team</p>
<p class="creator"><a href="http://orgmode.org">Org</a> version 7.9.2 with <a href="http://www.gnu.org/software/emacs/">Emacs</a> version 24</p>
<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
Modified: www/codingstyle.org
===================================================================
--- www/codingstyle.org 2013-05-16 17:28:50 UTC (rev 1222)
+++ www/codingstyle.org 2013-05-17 07:27:46 UTC (rev 1223)
@@ -26,10 +26,13 @@
- operators (~= + - *~ etc.) should be surrounded by a space (and in R
the ~<-~ operator too)
- a file should always have a newline at the end (Why?)
- - don't use tabs (as everyone seems to have a different setting for the
- tab stop): use spaces. How many spaces is up for debate. Of course
- Makefiles are exempt from this rule as tabs are mandatory
- - no (unnessary) empty lines
+ - don't use tabs (as everyone seems to have a different setting for
+ the tab stop): use spaces. How many spaces is up for debate (YA &
+ LCK suggest 4). Of course Makefiles are exempt from this rule as
+ tabs are mandatory
+ - no (unnecessary) empty lines. Empty lines separating (logical)
+ blocks of code are OK, empty lines at the bottom of a file, a
+ function, an if-statement are not.
** Other
- lines should not be longer than 80 characters
- do not use one charcter variables, except when it is a counter in a loop
@@ -72,6 +75,10 @@
* LaTeX
* Configuring editors and IDEs to support the guidelines
** Eclipse
+ This works for Eclipse IDE for C/C++ Developers Juno Service release 2.
+ To replace tabs with spaces go to
+ - Preferences -> C/C++ -> Code Style -> Formatter
+ - Preferences -> StatET -> R code Formatting
** Emacs
#+begin_src lisp
;;; Trailing white space stuff
More information about the Genabel-commits
mailing list