forked from phoedos/pmd
2a5c025bd2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5671 51baf565-9d33-0410-a72c-fc3788e3496d
109 lines
5.4 KiB
HTML
109 lines
5.4 KiB
HTML
<html><head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<title>
|
|
PMD-JEdit Plug-in Users' Guide
|
|
</title>
|
|
<body>
|
|
<TABLE CELLSPACING=0 BORDER=0 WIDTH="100%" bgcolor="#CCCCFF">
|
|
<TR>
|
|
<TD WIDTH="100%" VALIGN="MIDDLE">
|
|
<H1>PMD-JEdit Plug-in User's Guide</H1>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<hr>
|
|
<p>PMD is a Java source code analyzer - it finds unused variables, questionable design decisions, empty catch blocks, and so forth.
|
|
You can read much more about PMD here - http://pmd.sf.net/.</p>
|
|
<h3>Installation</h3>
|
|
<ul>
|
|
<li>Uninstall any old PMD-JEdit plugins
|
|
<li>Unzip the PMD-JEdit-bin-2.6.zip file into your JEdit directory; it'll put a couple of jar files into your jars directory.
|
|
<li>Restart JEdit and you'll be ready to go.
|
|
</ul>
|
|
<h3>Integration</h3>
|
|
<p>There's a new 'PMD' menu item in the Plugins menu. This has several submenu options</p>
|
|
<ul>
|
|
<li>"Check current file" checks your currently displayed Java code</li>
|
|
<li>"Check all files in current directory" does just that</li>
|
|
<li>"Check directory recursively" does just that, too! </li>
|
|
<li>Detect Duplicate Code
|
|
<ul>
|
|
<li>"In current file" checks your currently displayed Java code for duplicates</li>
|
|
<li>"In directory" same thing for the directory. On the resulting File Browser you can select "Recursive" to scan the selected directory recursively.</li>
|
|
</ul>
|
|
</ul>
|
|
<p>All those options put any errors into the ErrorList so you can then go jumping around your project fixing stuff.
|
|
<p>There's a section in the Utilities->Global Options->Plugins configuration panel that lets you pick which rule sets you want to use.</p>
|
|
<p>Note that the configuration panel also contains the minimum tile size for CPD to turn up a duplicate chunk.
|
|
|
|
Take a look at the <a href="#releasenotes">Release Notes and Changelog</a> for more details on new features in this release. <br>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<a name="releasenotes"></a>
|
|
<h2>Release Notes & Changelog</h2>
|
|
<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>Lots of code cleanup and optimizations.</li>
|
|
</ol>
|
|
|
|
<h3>2.4</h3>
|
|
<ol>
|
|
<li>Optimized usage of ErrorSource for faster Error Highlighting.</li>
|
|
<li>Updated to PMD 1.6</li>
|
|
<li>Fixed Run on save running when the buffer is non Java also.</li>
|
|
<li>Added option to export PMD results to a file in various formats such as HTML, XML, Text, CSV etc.</li>
|
|
<li>Added a new feature to show Progressbar when working on Large file sets.</li>
|
|
<li>Made Progress bar color user-configurable.</li>
|
|
<li>Improvement in Copy/Paste Detector.</li>
|
|
|
|
</ol>
|
|
<h3>2.3</h3>
|
|
<ol>
|
|
<li>Updated to PMD 1.3</li>
|
|
</ol>
|
|
<h3>2.2</h3>
|
|
<ol>
|
|
<li>Updated to PMD 1.2.1</li>
|
|
<li>Updated to jEdit 4.2 API changes</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>
|
|
<li>Updated to use pmd-1.05</li>
|
|
</ol>
|
|
|
|
<h3>License</h3>
|
|
<p>The PMD-JEdit plugin is free software released under the Apache license.</p>
|
|
</body>
|
|
</html> |