Re: Source formatting issues while maintaining code
"Will Sargent" <[email protected]> Fri, 26 Dec 2008 02:28:28 -0800
| Newsgroups | gmane.comp.programming.language-of-the-year |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Nov 23, 2008 at 8:06 AM, Tushar Joshi <[email protected]> wrote: > Hi, > Let me add some more points here: >>>meaningful "blame" information, > Exactly this is the main reason we want to maintain the code formatting > >>> that has a setting to ignore whitespace-only changes. > I have tried using the Eclipse Compare/Patch setting of ignore white spaces > but when it encounters a auto formatted file it shows numerous changes and > the ignore whitespace setting doesn't seem to work in that case. > But Eclipse compare option is so easy that it will always be my > first preference to use rather than a external CVS diff tool which is > intelligent, and even I don't know of such a tool > Tushar Joshi > http://www.tusharvjoshi.com There are a number of auto-formatters for Java, and you can execute them from an Ant Task, so that they will "normalize" any code before running automated code quality tools like PMD or FindBugs. The best one is probably http://www.triemax.com/ -- there's an open source version at http://jalopy.sourceforge.net, but that doesn't support some 1.5 features. Will.