Checkstyle development tool
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.
- Within Eclipse go to Help->Software Updates->Available Software
- Create new update site with Add Site... button.
- 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.
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 for project and still have possibility check source file manually. Select Checkstyle->Check Code with Ckeckstyle in Package Explorer context menu for any java (or properties) file.