forked from phoedos/pmd
Add CPD GUI command
This commit is contained in:
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.cli.commands.internal;
|
||||
|
||||
import net.sourceforge.pmd.cpd.GUI;
|
||||
|
||||
import picocli.CommandLine.Command;
|
||||
|
||||
@Command(name = "cpd-gui",
|
||||
description = "GUI for the Copy/Paste Detector%n Warning: May not support the full CPD feature set")
|
||||
public class CpdGuiCommand implements Runnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
new GUI();
|
||||
}
|
||||
|
||||
}
|
@ -14,7 +14,7 @@ import picocli.CommandLine.IVersionProvider;
|
||||
exitCodeListHeading = "Exit Codes:%n",
|
||||
exitCodeList = { "0:Succesful analysis, no violations found", "1:An unexpected error occurred during execution",
|
||||
"2:Usage error, please refer to the command help", "4:Successful analysis, at least 1 violation found" },
|
||||
subcommands = { PmdCommand.class, CpdCommand.class, DesignerCommand.class })
|
||||
subcommands = { PmdCommand.class, CpdCommand.class, DesignerCommand.class, CpdGuiCommand.class })
|
||||
public class PmdRootCommand {
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user