AARRGGHH!!

I haven't been able to get Jalopy to cooperate in the least. A big part of it is that the documentation leaves a great deal to be desired in explaining how to configure it, and naturally the GUI configuration tool, which seems to be the only method talked about anywhere, doesn't seem to be working for me. I even tried configuring it via jEdit and IDEA plug-ins, and neither seems to want to export the setting properly (there may be a version mismatch there, I'm pretty certain that's the case with the jEdit plug-in).

I *thought* I had managed to get a conventions file put together manually, but it wasn't fixing some very trivial things like line length problems (even though when I loaded the same source file in the IDEA plug-in config editor I could see that it would in fact fix it).

I'm calling it a night, this has been frustrating me for the better (or more precisely, WORSE) part of three hours. I'll try again next chance I get.

If anyone reading this can get the GUI configurator to spit out a conventions file (using Jalopy 1.5rc1) and send it to me, I'd appreciate it greatly! The default settings are actually the Sun coding standards, which the Checkstyle file is set up to use with only minor alterations, so in theory they should be almost perfectly matched without doing anything else.

Frank

Frank W. Zammetti wrote:
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