I just found a useful plug-in for Eclipse that analyzes your Java code. It’s available at http://eclipse-cs.sourceforge.net/index.html.
I used the Remote install feature of Eclipse to install it. Here are the instructions.
A quick tip that you need to know is that you have to enable your project for CheckStyle. Right click on your project and select Properties. In the dialog select CheckStyoe and then check ”Checkstyle active for this project”.
Then rebuild your project and look in the Problems view. You’ll see CheckStyle problems there. They’ll continue to be updated each time a file is compiled.old-
Also, see http://checkstyle.sourceforge.net/index.html for details on CheckStyle including a list of the checks it makes.