<li>"In directory" same thing for the directory. On the resulting File Browser you can select "Recursive" to scan the selected directory recursively.</li>
The checkbox tree makes it easy to pick complete rulesets, just check on a ruleset to select all the rules in a ruleset. You can also add your own custom rulesets by entering the path to your rules.xml file. Probably most handy for day-to-day use are the Basic, Import, and Unused Code rulesets. <br><br>
The first time you install the PMD plugin, a number of rules are already selected. The selected rules are those suggested by PMD best practices -- unused code, basic rules, a few design rules, a few controversial rules, the imports rules, and the string rules. These are a good starting place. Feel free to add or remove rules as fits your needs.
<br><br>
<imgsrc="rules.jpg"><br><br>
As you move your mouse over the various rules, the "Example" area shows the sort of code the particular rule checks for:<br><br>
<imgsrc="example_area.jpg"><br><br>
The configuration area also contains settings for a few other things:<br><br>
<imgsrc="other_settings.jpg"><br><br>
These should be pretty much self-explanatory. One non-obvious thing is that if you check "Run PMD on Save", this will cause PMD to start automatically when jEdit starts. This is so PMD is ready to check your code the first time you save. This might cause jEdit to start just a little bit slower, but you probably won't notice that.</p>
The PMD plugin provides access to the Copy/Paste Detector. This can help identify and eliminate duplicate code in a project. The heuristics used in the detection are a little "fuzzy" in that it is able to detect code that is very close to the same as code found elsewhere and can identify duplicate code regardless of the formatting of whitespace.
<p>
The CPD is very fast. It can also work on a variety of languages. Currently supported languages are Java, JSP, PHP, C/C++, Fortran, and Ruby.
<p>Starting 2.1, you can now add Custom Defined Rulesets with PMD plugin. Previously, if you want to use your own rulesets with the PMD plugin, you had to unjar the pmd.jar file & add your ruleset defination in the jar file & re-jar it & use it. But this procedure had to be repeated whenever a new PMD is out. But not anymore. Now you can simply point PMD plugin to your custom rulesets.xml file & drop your custom ruleset jars in either of jEdit jars directory(either system or user). Once this is done, you will be able to manipulate your Custom Rulesets just the way like the built-in ones.</p>
As of version 3.0, the PMD Plugin provides access to the PMD Rule Designer, which makes it easier to create your own custom rules. Start the Designer by going to Plugins -> PMD Plugin -> Run Rule Designer. The instructions for the Designer can be found on the PMD website at <ahref="http://pmd.sourceforge.net/xpathruletutorial.html">http://pmd.sourceforge.net/xpathruletutorial.html</a>.
<p>PMD jEdit 2.2 adds updates PMD plugin to the latest and the greatest PMD release, updates to Dynamic class loading feature of jEdit and adds PMD to jEdit's File System Browser for easy access.</p>
<p>PMD jEdit plugin 2.5 updates to the latest PMD release, remove redundant menu options and makes usage of the plugin more compact. Look at the details Release notes and Changelog below.</p>
<li>Mouse-over on ruleset names now gives description of the ruleset in the example box. This makes it easier to understand what the group of rules is about.</li>
<li>Added menu item to access PMD Rule Designer.</li>
<li>Fixed a bug in 'check all files in a directory' where the plugin always defaulted to Java 1.4 rather than the Java version selected in the option pane.</li>
<li>Revised the option pane to use a checkbox tree rather than a list of checkboxes. The list was long (just under 200 rules), and didn't have any grouping by ruleset. The checkbox tree groups the rules by ruleset, and clicking the checkbox on the ruleset checks all rules contained by that ruleset. This is way easier than looking through the long list to pick out the rules.</li>
<li>Revised the option pane so the layout is more compact and fits on the screen better.</li>
</ol>
<h3>2.7 (2007-11-20) </h3>
<ol>
<li>Updated to PMD 4.1</li>
<li>New option: choose version of Java (1.4, 1.5, 1.6) </li>
<li>Fixed Bug [1501422] PMD Plugin: example box is not updated when new items hover filed in jEdit Plugins Bug tracker.</li>
<li>Changed the way Rules are managed and given for execution to PMD due to addition of new languages to PMD and was giving error due to language mismatch.</li>
<li>Added new option "Print Rulename in ErrorList" which is helpful to trace down what rule is generating this error.</li>
</ol>
<h3>2.6</h3>
<ol>
<li>Updated to PMD 3.4</li>
<li>Updated to jEdit 4.3pre3</li>
<li>Added "Ignore Literals & identifiers" option for CPD. </li>
</ol>
<h3>2.5</h3>
<ol>
<li>Updated to PMD 1.9</li>
<li>Removed Recursive Directory options and integrated them into FileChooser itself.</li>
<li>Complete redesign of the way PMD Rules and Copy/Paste Detector are used.</li>
<li>Fixed improper highlighting of Rule Violations. Because of this bug, any open file in jEdit was showing errors of other files too.</li>
<li>Added PMD in jEdit's File System Browser Plugins Menu.</li>
</ol>
<h3>2.1</h3>
<ol>
<li>Added "clear ErrorList" option.</li>
<li>Added "check all open buffers" option.</li>
<li>Added support to define Custom RuleSets thereby facilitating integration of Custom Rulesets with built-in rulesets & their independent development.</li>
<li>Added C/C++, PHP support to Copy/Paste Detector. Now you can find out duplicate code in your C/C++ & PHP code besides the usual Java code.</li>
</ol>
<h3>2.0</h3>
<ol>
<li>Integrated Copy/Paste Detector(CPD) in jEdit.</li>