Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validate java code

 
santhoshkumar samala
Ranch Hand
Posts: 156
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic