Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dev:coding_style [2013/10/17 01:08]
michael [Indentation]
dev:coding_style [2013/10/18 00:38] (current)
michael [Indentation - NO TAB CHARACTERS]
Line 9: Line 9:
 ===== Indentation -  NO TAB CHARACTERS ===== ===== Indentation -  NO TAB CHARACTERS =====
  
-Indentation is by four spaces at a time.  There should be **no tab characters anywhere** in Rosegarden source code.  The indentation should look the same regardless of whether you read it in an IDE, in a terminal window with "​cat"​ or "​vi",​ in Emacs, or quoted in an email. It **must not** depend on having the right settings for tab-to-space conversion in your IDE when you read it.  (Emacs and vim users will note that we already start every source file with a meta-comment that sets up the right indentation mode in these editors.)+Indentation is by four spaces ​(0x20) ​at a time.  There should be **no tab characters ​(0x09) ​anywhere** in Rosegarden source code.  The indentation should look the same regardless of whether you read it in an IDE, in a terminal window with "​cat"​ or "​vi",​ in Emacs, or quoted in an email. It **must not** depend on having the right settings for tab-to-space conversion in your IDE when you read it.  (Emacs and vim users will note that we already start every source file with a meta-comment that sets up the right indentation mode in these editors.)
  
 +//NOTE: As of revision 13,509, Rosegarden has 8,691 tab characters in 287 files. ​ Rosegarden 10.02 had 9,598 tab characters in 262 files. ​ The good news is fewer tabs overall, but the bad news is 25 new files have tabs that never had tabs before. ​ New developers are ignoring this rule, apparently.//​
 ===== Namespaces ===== ===== Namespaces =====
  
 
 
dev/coding_style.txt ยท Last modified: 2013/10/18 00:38 by michael
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki