post-release stuff

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@444 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-07-18 18:20:06 +00:00
parent 9e2632ff84
commit e83324fe14
2 changed files with 19 additions and 24 deletions

View File

@ -31,7 +31,7 @@
<td><a href="http://sourceforge.net/project/showfiles.php?group_id=56262&amp;release_id=99301">X</a></td></tr>
<tr><td>JEdit</td>
<td>pmd-jedit</td>
<td>0.3</td>
<td>0.4</td>
<td>tomcopeland</td>
<td><a href="http://sourceforge.net/project/showfiles.php?group_id=56262&amp;release_id=99325">X</a></td></tr>
<tr><td>Maven</td>
@ -81,15 +81,15 @@ code which caused it.
</subsection>
<subsection name="Borland JBuilder">
<p>
To enable this OpenTool in JBuilder, place the PMDOpenTool.jar file AND the pmd-x.x.jar file (where
To enable this OpenTool in JBuilder, place the PMDOpenTool.jar file AND the pmd-x.x.jar file (where
x.x is the version id) into JBuilder's lib/ext directory. Once JBuilder is restart, the PMD OpenTool
will be enabled.
will be enabled.
What you can do:
<li>Check a single file by bringing up the context menu from the file tab and selecting PMDCheck</li>
<li>Check a single file by bringing up the context menu from the file tab and selecting PMDCheck</li>
<li>Configure the rulesets that the PMD OpenTool will use by selecting Tools->PMD->Configure PMD</li>
<li>Check all the files in a project by brining up the context menu for the project node and selecting PMD Check Project</li>
</p>
<p>When running PMD, the results will be displayed in the MessageView under a tab called PMD Results. If you click on a
<p>When running PMD, the results will be displayed in the MessageView under a tab called PMD Results. If you click on a
violation message within this view, you will be taken to the line in the source code where the violation was detected.
</p>
<p>Things still to do:
@ -102,12 +102,11 @@ violation message within this view, you will be taken to the line in the source
<subsection name="JEdit">
<p>
This is more or less the standard JEdit plugin - open a file, select Plugins->PMD->Check code and
you get a popup list of problems. Things to do:
you get a popup list of problems. It uses the ErrorList plugin which provides the "jump to the correct line"
and syntax highlighting functionality. Things to do:
<ul>
<li>Make the popup window dockable</li>
<li>Make it so you can click on the warning msg and jump to the line of code</li>
<li>Investigate colorizing</li>
<li>Enable it to run on a whole directory tree</li>
<li>Move the configuration stuff into the JEdit Global Options menu</li>
</ul>
</p>

View File

@ -10,21 +10,17 @@
<section name="Running PMD via command line">
<ul>
<li>Type run &lt;filename&gt; &lt;report format&gt;, &lt;rule set file&gt;i.e.:</li>
<subsection>
<source>
<![CDATA[
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
<?xml version="1.0"?><pmd>
<ruleviolation>
<file>c:\data\pmd\pmd\test-data\Unused1.java</file>
<line>5</line>
<description>Found unused local variable 'fr'</description>
</ruleviolation>
</pmd>
C:\data\pmd\pmd\etc>
]]>
</source>
</subsection>
<br>
C:\data\pmd\pmd\etc&gt;run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
&lt;?xml version="1.0"?&gt;&lt;pmd&gt;
&lt;ruleviolation&gt;
&lt;file&gt;c:\data\pmd\pmd\test-data\Unused1.java&lt;/file&gt;
&lt;line&gt;5&lt;/line&gt;
&lt;description&gt;Found unused local variable 'fr'&lt;/description&gt;
&lt;/ruleviolation&gt;
&lt;/pmd&gt;
C:\data\pmd\pmd\etc&gt;
<br>
<li>Notice that in this case the output is in XML, so you can redirect it to a file and XSLT it or whatever</li>
</ul>
</section>