Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding new rule to Eclipse's code analysis plugin PMD

 
Piyush Tripathi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've added a plugin to eclipse for java code analysis,the plugin is PMD.Now i want to add a new rule to the existing rules of PMD.
I make a plug in development project by going to New Project wizard -> Plug in development->Fragment Project.After making the rule class I run the project as Eclipse Application.A new instance of eclipse is started. In this i add the rule to the plugin.For this I go to Window | Preferences... | PMD | Rules configuration .There i go to Add Rule and in the dialog that opens i fill the required fields but when i click ok I get the following message-
Invalid implementation class .The class must be in the plugin classpath and implement the rule interface.

What am i doing wrong? Can anyone please suggest me.

Thanks in advance,
Piyush

 
Shainaz Tamboli
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am also facing the same problem.
Can you please tell me how to solve above problem.



Regards,
Shainaz
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic