On 11/21/11 10:59 AM, Alec Taylor wrote:
Can't you configure every IDE to notice if the if statement is not
within braces?
(you can also configure emacs and vim to notice)
Didn't see that option in eclipse, but I wouldn't use it anyway,
since it will then output tons of warnings for existing code and
I don't think that this violation would be a reason to change our
existing code.
I find that if your coder can't even notice when his conditional or
loop is greater than 2 lines and thus requires braces, then that coder
isn't any good.
If someone new starts to write or change our code they usually try
to imitate our existing coding style. The code conventions page should
be a help to make this easier.
The people which belong the group above will always produce code which
is readable and can be committed in the format it is anyway.
I personally don't want to strictly enforce code conventions on code which
has a good readability and mostly complies with the code conventions.
Jörn