> - indentation of statements in the same code block (if I see indentation is off
> on code review screen I would not like to accept it, usually it is caused by
> mixing tabs and spaces)
I'm glad you mentioned this one.
Many projects are very strict about tabs/spaces. They won't accept a patch
until that is resolved. I don't get it though :) Can someone tell me why it
is worth spending time on such a thing? The best reason I was given yet
is that "for those not using Eclipse, it can make things very hard to read".
Is there some other value?
With the Eclipse settings I have, I've never seen code mis-aligned even
though tabs/spaces were all messed up.
From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] on behalf of Alena Laskavaia [elaskavaia.cdt@xxxxxxxxx]
Sent: January 27, 2015 1:19 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Code Style for CDT code
I am ok with braces rules proposed by Sergey
Regarding Java formatter, we are tools guys, lets fix Java formatter then. Sergey do you have bugs open for JDT?
I agree to set length to 132. Having length as 80 really does not work with DSF callbacks style (when we can switch to java 8 btw?).
But I personally would not enforce any of these rules above in code reviews.
The only real things I am concerned on code reviews are:
- copyright comments and general comments
- indentation of statements in the same code block (if I see indentation is off on code review screen I would not like to accept it, usually it is caused by mixing tabs and spaces)
- if somebody start using weird naming conventions (like c-style method name get_me_something_1)