Re: Code formatting

2010-09-16 Thread Greg Brown
> I noticed that existing comments seem to be hacked around quite a lot by the > Eclipse formatting profile, but assumed that was because the code pre-dated > the profile, or was not written in Eclipse. Actually, it seems that the comments are formatted based on a line width specified in the form

Re: Code formatting

2010-09-16 Thread Chris Bartlett
I noticed that existing comments seem to be hacked around quite a lot by the Eclipse formatting profile, but assumed that was because the code pre-dated the profile, or was not written in Eclipse. Another option would be to have a pre-commit Ant task which would perform a trim-whitespace, format a

Re: Code formatting

2010-09-16 Thread Greg Brown
OTOH, a better approach might be to simply review the formatter thoroughly so we don't have to worry about this at all. I'll try to find some time to do that. On Sep 16, 2010, at 3:05 PM, Greg Brown wrote: > Hi all, > > Just a code style request - please don't apply the code formatter to existi

Code formatting

2010-09-16 Thread Greg Brown
Hi all, Just a code style request - please don't apply the code formatter to existing code unless it is really necessary. Although the formatter works pretty well, I often still manually tweak the formatting for the sake of readability. Applying the formatter generally blows away all of the man