Difference between revisions of "Checkstyle development tool"
(New page: 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 i...)
m (Protected "Checkstyle development tool": Sysop page [edit=sysop:move=sysop])
Revision as of 19:01, 21 January 2009
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 2. Create new update site with Add Site... button. 3. Input a name to your liking (for instance Checkstyle Plug-in) and input the following URL: http://eclipse-cs.sourceforge.net/update 4. Click your way through the following pages to install the plug-in.
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.