This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes validate java code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "validate java code" Watch "validate java code" New topic
Author

validate java code

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

I know that we can configure our java coding style in the eclipse.

Is there any way to check whether a particular java file has followed that standard or not?

if any guy in my team does coding, and I have to review it for coding standards then how can check it through eclipse?

thanks in advance


santhosh<br />SCJP,SCWCD
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You can configure a code standard that all team member should follow in Eclipse - then make a export of this configuration and give it to the team members.

Now you can check the code in your version of Eclipse with the same configuration -and if any error/warn.. you'll see them in the Problem view.

Rene


Regards, Rene Larsen
Dropbox Invite
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

There is a plugin called Checkstyle which can show up differences between a class and the defined coding guidelines as warnings. Google for it - it should be easy enough to find.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Originally posted by Paul Sturrock:
There is a plugin called Checkstyle which can show up differences between a class and the defined coding guidelines as warnings. Google for it - it should be easy enough to find.


Checkstyle can also be used outside Eclipse

Eclipse Checkstyle Plug-in
Checkstyle (to use outside Eclipse)


Rene
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validate java code
 
Similar Threads
How should I go about preparing?
eclipse java code
eclipse project
Defining standards in XML
eclipse package building