tags:

views:

32

answers:

3

How can we add a new java based pmd rule in eclipse pmd plugin?

I am getting following error:

Invalid Class implementation.The class must be in plugin classpath and implement the rule interface.

I have extended rule class with AbstractRule class.

A: 

Can you tell me how to create that rule? First of all i am not able to create rules in pma for eclipse. I am confusing with environment for creating rule..! thanks in advance!

hemanth
A: 

I am able to add new rule in eclipse plugin..

Please follow this article.

A: 

yes, i followed ur specified article. but i am using pmd with the version 3.2.6 . The specified article used 3.1.0 . That is the reason i am getting compilation error at RuleViolation class constructor. I think the class has been updated. What should i do now! Offcourse my intention is not use that rule and i need to create a rule for java comments. Have you aware of this type of rule?

hemanth