I haven't had time to do much on OpenGrok lately (training for Birkebeinerrittet), but since I am evidently the only OpenGrok developer with some style (he, he) Trond has been nagging me about adding some ant rules for CheckStyle in our build system.
I added them, and Trond added the plugin to his Hudson, and after that Trond and Knut Anders has been fixing lots of the warnings, so it seems to be working fine.
If you want to be stylish too
, this is how you run CheckStyle on the OpenGrok code:
First you must download the CheckStyle 5.0 Zip file, and unpack it:
cd ~/.ant/lib
unzip ~/Desktop/checkstyle-5.0-beta01.zip
ln -s checkstyle-5.0-beta01 checkstyle
You also have to create symbolic links to the jar files:
cd checkstyle
ln -s checkstyle-5.0-beta01.jar checkstyle.jar
ln -s checkstyle-all-5.0-beta01.jar checkstyle-all.jar
Now you are ready to check how stylish you are:
ant checkstyle
Enjoy!

