Ekiminated duplicates when running PMD over a project
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@826 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -28,7 +28,7 @@ debug.NoTracingClasses.9[0]=6 java.*1 1 -1
|
||||
editor.search.file_filter_history.1[0]=*.java
|
||||
history.files.active[0]=src/net/sourceforge/pmd/jbuilder/PMDOpenTool.java
|
||||
history.files.open.1[0]=src/net/sourceforge/pmd/jbuilder/CPDDialog.java,F;68,2295
|
||||
history.files.open.2[0]=src/net/sourceforge/pmd/jbuilder/PMDOpenTool.java,F;348,15146
|
||||
history.files.open.2[0]=src/net/sourceforge/pmd/jbuilder/PMDOpenTool.java,F;327,14097
|
||||
import.optimize.packageprefixgroupings.1[0]=java
|
||||
import.optimize.packageprefixgroupings.2[0]=<blank line>
|
||||
import.optimize.packageprefixgroupings.3[0]=javax
|
||||
@ -46,6 +46,6 @@ team.CvsRepository[0]=/cvsroot/pmd
|
||||
team.CvsServer[0]=cvs.pmd.sourceforge.net
|
||||
team.CvsShowConsole[0]=0
|
||||
team.CvsUsername[0]=dcraine
|
||||
team.prunedDirectories[0]=bak/pmdopentool;classes/images;classes/net
|
||||
team.prunedDirectories[0]=bak/pmdopentool;classes/net
|
||||
wizard.package.package_history.1[0]=net.sourceforge.pmd.jbuilder
|
||||
wizard.package.package_history.2[0]=pmdopentool
|
||||
|
Binary file not shown.
@ -36,6 +36,7 @@ import javax.swing.ProgressMonitor;
|
||||
import net.sourceforge.pmd.cpd.TokenEntry;
|
||||
import com.borland.primetime.vfs.Url;
|
||||
import java.util.ArrayList;
|
||||
import com.borland.jbcl.control.MessageDialog;
|
||||
|
||||
|
||||
|
||||
@ -338,7 +339,10 @@ public class PMDOpenTool {
|
||||
for (int i=0; i<nodes.length; i++ ) {
|
||||
if (nodes[i] instanceof PackageNode) {
|
||||
PackageNode node = (PackageNode)nodes[i];
|
||||
pmdCheckPackage(node, rules);
|
||||
String packageName = node.getName();
|
||||
if (packageName != null && !packageName.trim().equals("")) { //if there is no name then this is probably the <Project Source> package - so ignore it so we don't get duplicates
|
||||
pmdCheckPackage(node, rules);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -369,7 +373,10 @@ public class PMDOpenTool {
|
||||
for (int i=0; i<nodes.length; i++ ) {
|
||||
if (nodes[i] instanceof PackageNode) {
|
||||
PackageNode node = (PackageNode)nodes[i];
|
||||
pmdCPDPackage(node, cpd);
|
||||
String packageName = node.getName();
|
||||
if (packageName != null && !packageName.trim().equals("")) { //if there is no name then this is probably the <Project Source> package - so ignore it so we don't get duplicates
|
||||
pmdCPDPackage(node, cpd);
|
||||
}
|
||||
}
|
||||
}
|
||||
cpd.go();
|
||||
|
Reference in New Issue
Block a user