-----Original Message-----
From: David Nalley [mailto:da...@gnsa.us] 
Sent: Saturday, June 23, 2012 1:27 AM
To: cloudstack-dev@incubator.apache.org
Subject: Re: Coding conventions, spaces and tabs

On Fri, Jun 22, 2012 at 3:51 PM, Deepak Garg <deepak.g...@citrix.com> wrote:
> +1
>
>
> In Eclipse it is easy to configure the editor to replace 'tabs' with 'spaces' 
> and also to kill the trailing whitespaces:
>
> To remove the trailing whitespaces on save:
>
> Preferences -> Java -> Editor -> Save Actions -> Configure Project Specific 
> settings -> (choose project) -> Configure -> Choose "Remove Trailing 
> WhiteSpace"
>
>


>So not to be argumentative, but:

>It may be easy, but that doesn't mean people will do 'The Right
>Thing', hence why there are so many coding convention problems in our
>codebase.

>--David


One way to solve this problem is to have a script or may be something in unit 
tests which people can run locally on the entire codebase before pushing the 
code to the community. It can throw errors and point to such violations. 
As developers have varied choices of their editors, so this will be a ground 
check for them before they push the code.
This is similar to how pep8 checks were used in Openstack unit test bundle.


Deepak

Reply via email to