Updated; thanks to David Campbell for the bug report
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1500 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -20,12 +20,12 @@ C:\tmp\tmp_pmd\pmd\etc>
|
||||
|
||||
-run PMD on a Java source file
|
||||
|
||||
C:\tmp\tmp_pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java html rulesets/unusedcode.xml
|
||||
C:\tmp\tmp_pmd\pmd\etc>run c:\data\pmd\pmd\test-data\UnusedLocal1.java html rulesets/unusedcode.xml
|
||||
<html><head><title>PMD</title></head><body>
|
||||
<table><tr>
|
||||
<th>File</th><th>Line</th><th>Problem</th></tr>
|
||||
<tr>
|
||||
<td>c:\data\pmd\pmd\test-data\Unused1.java</td>
|
||||
<td>c:\data\pmd\pmd\test-data\UnusedLocal1.java</td>
|
||||
<td>5</td>
|
||||
<td>Avoid unused local variables such as 'fr'</td>
|
||||
</tr>
|
||||
@ -58,6 +58,9 @@ HOW TO RUN PMD FROM THE COMMAND LINE (UNIX)
|
||||
[build@ul020-dmz etc]$
|
||||
|
||||
-if you send in a directory as the first parameter, PMD will run recursively on all files and subdirectories
|
||||
-note that if you're using JDK 1.3, you'll need to use java -cp, not java -jar. Like this:
|
||||
|
||||
java -cp lib\pmd-1.03.jar;lib\xercesImpl-2.0.2.jar;lib\xmlParserAPIs-2.0.2.jar net.sourceforge.pmd.PMD c:\j2sdk1.4.1_01\src\java\lang xml rulesets/imports.xml
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,8 @@
|
||||
<section name="Credits">
|
||||
<subsection name="Individuals">
|
||||
<ul>
|
||||
<li>Michael Sutherland - bug report</li>
|
||||
<li>David Campbell - documentation tweaks</li>
|
||||
<li>Michael Sutherland - bug report in IfStmtMustUseBracesRule</li>
|
||||
<li>Andrew Glover - ExcessivePublicCountRule, CouplingBetweenObjectsRule, ExcessiveImportsRule, documentation tweaks</li>
|
||||
<li>Egon Willighagen - pmd-web suggestion</li>
|
||||
<li>Carl Gilbert - DoubleCheckedLockingRule, ConstructorCallsOverridableMethodRule, bug reports, feature requests, and documentation improvements</li>
|
||||
|
Reference in New Issue
Block a user