Checkstyle is a tool in the open source community which helps to ensure that the java code is following the standards that you are recommending. In checkstyle you can customize rules that will help you to address certain coding standards
Setting up checkstyle
The installation details can be obtained from the sourceforge.net/update
You can use Eclipse Update Manager to update the Checkstyle or any related plugins. Please see Eclipse Update Manager
If the IDE that you use is Eclipse, you need to select the Sun Checks which is at Window -> Preferences -> Checkstyle.
After selecting the required on, click the “Set as Default”.
When you are changing the setting from the standard profile it’s better to make a copy of the existing profile.
You can keep a copy of the existing by selecting as shown below.
For the new configuration, select configure.
You can use this as the default one.
Checkstyle for Teams
When you have a team involved in development it’s better to for same rules for the coding style.
The Eclipse checkstyle plugin caters to this by providing a remote site for the checkstyle settings.
Click in the new in the settings and select ‘Remote Configuration’.
Provide the ruleset a description and provide the URL that can be used for this settings.
You can use this setting as the default one.
Checkstyle for Projects
You can use the new profile created as the default one.
In order to have the Checkstyle active for the project you need to activate the Eclipse Checkstyle Plugin for the project.
Right click the project and search for Checkstyle. Select the checkbox “Checkstyle active for this project”.
Once this is done the Checkstyle browser view can be used to display the violations.
More on Checkstyle at www.checkstyle.sourceforge.net
- Flash Remoting for J2EE
- J2EE Checklists
- AWT vs Swings
- What is Beehive
- CGI Tutorials
- CORBA tutorials
- J2EE Application server
- J2EE History
- J2EE Design Patterns
- J2EE Interview Questions
- Application Server
- What is Manifest
- What is Maven
- Maven 2
- POJO Application Frameworks
- Web 2.0
- AWT vs Swings
- J2ME- Java2,Micro Edition
- iBatis DAO
- Working with eclipse and CVS
- XDoclet tutorial
- Cross-site scripting
- Cross-site scripting – part 2
- Workflow Component
- How to check performance in J2EE applications
- Sun VirtualBox
- Secure Coding Guidelines
- Eclipse Shortcuts
- Applications on Eclipse
- Extension Points
- Best place in the internet where you will get Java J2ee pdf tutorials
- DISTRIBUTED MULTI-TIERED APPLICATION
- J2EE Containers
- Adaptive vs Responsive design
- Creating an Eclipse RCP application
- ElasticSearch – Storage Architecture using Inverted Indexes
- Architectural Considerations for using Elasticsearch
- How to use Elasticsearch with SQL Server