Using CheckStyle with Java Studio Enterprise and Netbeans

Very pleased to see that code validation can be accomplished in Java Studio Enterprise and NetBeans using CheckStyle

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. This makes it ideal for projects that want to enforce a coding standard. Checkstyle is highly configurable and can be made to support almost any coding standard. An example configuration file is supplied supporting the Sun Code Conventions. As well, other sample configuration files are supplied for other well known conventions. A good example of a report that can be produced using Checkstyle and Maven can be seen here.

nbCheckstyle is an installable module for Java Studio Enterprise (NB3.6) and NetBeans which provides integration with Checkstyle. Checkstyle is an excellent tool for helping developers keep to a given coding standard.
Here are the rules that were defined for the Belgian Federal Gov. https://jjguidelines.dev.java.net/.......also you can see Code Conventions for the Java Programming Language from Sun here

Comments:

Since you mention checkstyle and maven, I'd like to add that the Maven project type for netbeans 4.0+ is capable of running checkstyle (and pmd) reports using maven and display the results in the output window of netbeans. It also hyperlinks and annotates the warnings and errors in the editor. Check the url for screenshots.

Posted by Milos Kleint on February 15, 2005 at 11:54 PM PST #

Post a Comment:
Comments are closed for this entry.
About

I served as Chief Architect of Sun's Developers Tools and recently took on the challenge of managing the Sun Learning Services global technology architecture and infrastructure as Chief Technologist of Sun Learning Services.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today