|
From: Rob H. <ro...@ca...> - 2004-07-27 16:51:36
|
Would a solution to the issue of formatting be to modify the Ant script to check the code out of CVS, run it through Jalopy and then check it back in? This could be done every so often to keep code formatted in a standard way. Rob -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Colin Sampaleanu Sent: 27 July 2004 17:18 To: spr...@li... Subject: [Springframework-developer] Re: Formatting in the face of tab usage Also, last fall when we discussed tab usage, we all agreed that there were issues sometimes with hard tab usage, but basically decided to leave things as-is for the time being, with it probably being revisited in the future. I would personally be very happy to switch to using a space-based (2 or 4 chars per indent level) indentation setup instead, to avoid the problems with hard tab usage. With hard tab usage, if people don't have discipline and start adding in spaces, it quickly breaks down. Colin Colin Sampaleanu wrote: > I was looking at DefaultXmlBeanDefinitionParser, and it's clear that > whoever formatted it (Juergen I guess) is using an editor with hard > tabs set to 2 characters (not the more common 4 or 8). I say this > because for some method calls, the continuation line lines up method > args, but only if tabs are set to 2. If they are 4 or 8, the > continuation line is _way_ over to the right. > > While I'm not a big fan of hard tabs, as per our discussion last fall, > I can live with them. But what this means is that any continuation > lines need to be simply one or more tabs farther in than the line > before it. If you format lines so that you use hard tabs to line up > with some non-tab text in a line above, this will completely mess up > for other people using different tab settings. Ditto with adding some > real spaces (with or without tabs) at the beginning of the line. > Essentially _all_ indentation has to be based only on tabs. > > Colin > > > > ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |