File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes PMD for android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "PMD for android" Watch "PMD for android" New topic
Author

PMD for android

Eli Zuckerman
Greenhorn

Joined: Apr 19, 2010
Posts: 4
Which PMD rulesets should I run to check android code? I see there's an android specific one, but what about the rest? Sorry if this is a silly question, but I'm pretty new to programming and very new to PMD. Thanks!
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

PMD?


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Monu,
PMD Scans source code and looks for potential problems possible bugs, unused and suboptimal code, over-complicated expressions and duplicate code.

Let us wait for some one who has used PMD for aandroid applications.


Ananth Chellathurai [Walk on software]
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

Ananth Chellathurai wrote:Monu,
PMD Scans source code and looks for potential problems possible bugs, unused and suboptimal code, over-complicated expressions and duplicate code.

Let us wait for some one who has used PMD for aandroid applications.

Ah! The official site does not provide any rulesets directly; they advertise best practises instead so configuring PMD rules is left to the developer. Fred Grott has been involved with Android for as long as I can remember. He has a knol for this here.

Hope that helps.
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

Also, if you are interested in formatting your code per Android coding style, see this thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PMD for android