Add CPD GUI command

This commit is contained in:
Juan Martín Sotuyo Dodero
2022-08-16 23:54:17 -03:00
parent 1d8c8cbe17
commit 4ae3e993b9
2 changed files with 21 additions and 1 deletions

View File

@ -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();
}
}

View File

@ -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 {
}