|
From: | Laurent Destailleur (eldy) |
Subject: | Re: [Dolibarr-dev] Indent tabs or spaces? |
Date: | Sat, 04 Aug 2012 17:39:57 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 |
Well, there is so many way of working,
so this is what i suggest :
* We user PSR2 : https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md * Except for indentation that must be set to: Tabs = 4 spaces and we don't replace tabs with spaces but we keep the tab (PSR2 says we mut replace space by tabs). Reason is: This is the default option for Eclipse (Eclipse does not replace with space by default), so most developer will work like this. And above all, if you replace tabs with spaces, there is no way to use ALT-TAB to reduce nb of tabs: when we want to reduce a part of indented code of one level, we must remove manually spaces on each lines. Very boring. So I update the wiki to add this on page to explain all options to match this rules : http://wiki.dolibarr.org/index.php/Environment_and_development_tools#Install_Eclipse Le 03/08/2012 18:27, Régis Houssin a écrit : c'est dans PSR-2 -- Eldy (Laurent Destailleur). --------------------------------------------------------------- EMail: address@hidden Web: http://www.destailleur.fr Dolibarr (Project leader): http://www.dolibarr.org To make a donation for Dolibarr project via Paypal: address@hidden AWStats (Author) : http://awstats.sourceforge.net To make a donation for AWStats project via Paypal: address@hidden AWBot (Author) : http://awbot.sourceforge.net CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net |
[Prev in Thread] | Current Thread | [Next in Thread] |