File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes Code quality plugins in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Code quality plugins in eclipse" Watch "Code quality plugins in eclipse" New topic
Author

Code quality plugins in eclipse

Navneet Sharma
Greenhorn

Joined: Jan 02, 2013
Posts: 10
Hi Friends,

I write lot of java code everyday. Sometime in hurry I forget to close the resources (connection,file,etc,) in JAVA6 and this causes memory leak issues. I am looking for an eclipse plugin which can complain for these minor mistakes. Also I am looking for some more eclipse plugins which can improve my source code quality like naming conventions, code redundancy, complexity, too long code outside methods, etc,.

I found some plugins on google itself like FINDBUGS, CHECKSTYLE, PMD, etc,.

Please suggest me a best plugin which can perform all above mentioned activities. Also please post the URL to watch that plugin demo.

Thanks in advance !!

soundar rajan
Greenhorn

Joined: May 08, 2013
Posts: 16
Please try to use SONAR, this is one of the tool we can integrate with our normal build tool. It will be providing all connection file related issues and recommendations.
Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 125

I agree, Sonar is the best tool for static code analysis. But some friend also consider a bit hard to setup it with their project and prefer plugins. I would recommend the following plugins:

http://findbugs.sourceforge.net/
http://pmd.sourceforge.net/
http://eclipse-cs.sourceforge.net/
http://en.wikipedia.org/wiki/Java_Code_Coverage_Tools
http://stackoverflow.com/questions/4080/what-code-analysis-tools-do-you-use-for-your-java-projects
http://marketplace.eclipse.org/search/site/Source%2520Code%2520Analyzer


Please, visit me for some cool tech post at www.ourdailycodes.com
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

Sonar runs Findbugs, PMD and CheckStyle internally as well and shows graphs using these aggregate data. Moreover, one can easily integrate Sonar with CI servers like Jenkins and TeamCity to view these reports.


http://muhammadkhojaye.blogspot.com/
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7014
    
  16

Navneet Sharma wrote:I write lot of java code everyday. Sometime in hurry I forget to close the resources (connection,file,etc,) in JAVA6 and this causes memory leak issues. I am looking for an eclipse plugin which can complain for these minor mistakes.

That statement is a contradiction. If these "minor mistakes" cause problems, then plainly they aren't "minor", are they?

The best way to stop problems, as any QA zealot will tell you, is prevention, not control.

Code checkers - even good ones - may be able to stop some problems, but they won't stop them all; and they certainly won't make you a better programmer. And my worry is that it will become a crutch.

So, my advice: Slow down, and stop making these mistakes. You must have heard about the Tortoise and the Hare; well, programming is thought, not code.

My two-penn'orth.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
Niraj Jha
Ranch Hand

Joined: Feb 20, 2013
Posts: 61

Before writing error prone code first get some knowledge about how to write a good piece of code.You can discuss with QA people or follow some check list or get reviewed the code with senior.Make this thing a habit.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Code quality plugins in eclipse
 
Similar Threads
Web development from Eclipse
plugin in eclipse?
Bill - Eclipse & plugins
building a web app from a desktop app
Hibernate tools / plugin options