Checkstyle development tool

From Opentaps Wiki
Revision as of 19:03, 21 January 2009 by Oandreyev (talk | contribs) (Using Checkstyle development tool with Eclipse)
Jump to navigationJump to search

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. It automates the process of checking Java code to spare humans of this boring (but important) task.


Using Checkstyle development tool with Eclipse

As first step you have to install the Eclipse Checkstyle Plug-in via the update site.

1.Within Eclipse go to Help->Software Updates->Available Software 1.Create new update site with Add Site... button.

Follow this guide http://eclipse-cs.sourceforge.net/basic_creating_config.html and create opentaps check configuration. Select External Configuration File and choose opentaps check config file location.

Enable Checkstyle for a project as described on http://eclipse-cs.sourceforge.net/basic_setup_project.html

Depending on project size Checkstyle, working as project builder, can occupy a lot of memory. If required resources become a problem you can deactivate it in project properties and still have possibility check source file manually. To do so select Checkstyle->Check Code with Ckeckstyle in Packahe Explorer context menu for any java (or properties) file.