Brad Lucas

Programming, Clojure and other interests
June 30, 2006

Checkstyle Plug-In For Eclipse

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.

  • Within Eclipse go to Help->Software Updates->Find and Install
  • Choose Search for new features to install and press Next
  • Create a New Remote Site…
  • Input a name to your liking (for instance Checkstyle Plug-in) and input the following URL: http://eclipse-cs.sourceforge.net/update
  • Click your way through the following pages to install the plug-in.

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-

Very nice.

Also, see http://checkstyle.sourceforge.net/index.html for details on CheckStyle including a list of the checks it makes.

Tags: java