I would like to add a new rule related to DMLStatements in for loops.
What i have thought
- I could create a class with "AvoidDmlStatementsInLoopsRule" class code
then convert it into .jar and finally copy .jar into "eclipse\plugins\com.villagechief.pmd.eclipse_1.2.3.v201108241738\libs" folder.
For that i found a Java class in below url.
I'm completely blocked here, what to do next.
- I'm trying to save the class "AvoidDmlStatementsInLoopsRule" in eclipse, but it's importing some packages like
- I have downloaded above folder structure from "https://sourceforge.net/projects/pmd/files/".
How to made them available for the "AvoidDmlStatementsInLoopsRule" class.
Am i in the right direction or any other process to be followed instead?