Let's write Java code that adheres to a coding standard.

I think all of us wants to write code as book says.

But most of us didn't knows all the coding standards and what
you think it is good it may not be so.

Even if you read for example the Java coding standared you will forget some things (I'm sure of that).

so we need some persone to review our code and and tell us thats good or thats bad, what if there exists tools that helps you doing that.

I'm using amodule called Checkstyle that I configered it to work
with net beans.

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 of what you code do in the configuration file is to
support the Sun Code Conventions and more

you can write your owen regular expression that can be used for
checking the variables naming conventions.

offcourse you can configure checkstyle or other tools with any
other IDEs or even with maven or ant or others.

and this is the link for nbCheckstyle Home Page

http://nbcheckstyle.sourceforge.net/

Powered by Drupal - Design by artinet