You may want to have a look at Jalopy:

jalopy.sf.net

There are plugins for various IDEs and editors, as well as an Ant task (IIRC, you can use Ant tasks from Maven?). It won't fix everything, but it will help enforce many of the more common coding standards. It should be possible to configure its rules to match those of CheckStyle, so you could then use CheckStyle to manually deal with what remains that Jalopy doesn't fix.

Frank

Don Brown wrote:
It just fills the errors list with checkstyle errors, that you can then click on to be taken to the file and line. It was very handy for cleaning up Scripting.

Don

Ted Husted wrote:

Does it actually reformat the code? Or just report on what should be
reformatted?

On 1/17/06, Don Brown <[EMAIL PROTECTED]> wrote:
I've been using jEdit's checkstyle plugin.  I had to temporary modify
the checkstyle xml to remove those dynamic properties, but otherwise, it
worked great.

Don

Ted Husted wrote:

Is anyone using an automatic code reformatting tool that can read a
CheckStyle configuration?

I'd like to clean up some of the stylistic errors, but I would prefer
that most of the reformatting be done by a proven tool. I have utter
confidence in IDEA, but I don't know if we can perfectly align the
settings with CheckStyle.

For more, see

* http://issues.apache.org/bugzilla/show_bug.cgi?id=36306

Having CheckStyle standards is great, but I would rather have a
consistent code style that we can enforce with an automatic
reformatting tool.

-Ted.

On 12/31/05, Ted Husted <[EMAIL PROTECTED]> wrote:


See also


for more on this.

On 12/31/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Author: husted
Date: Sat Dec 31 12:10:04 2005
New Revision: 360442

URL: http://svn.apache.org/viewcvs?rev=360442&view=rev
Log:
Code reformatting only. No functional changes.
* Used JetBrains IDEA 5.x to conform code format per our guidelines.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to