• Post Reply Bookmark Topic Watch Topic
  • New Topic

PMD for android

 
Eli Zuckerman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PMD?
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you are interested in formatting your code per Android coding style, see this thread.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!