Checkstyle

This commit is contained in:
Clément Fournier
2023-02-20 14:55:21 +01:00
parent 60f28c5c35
commit 40aa9de6e1

View File

@@ -87,6 +87,7 @@ public class CpdCommand extends AbstractAnalysisPmdSubcommand<CPDConfiguration>
private List<Path> relativizeRootPaths;
@Option(names = { "--relativize-paths-with", "-z"}, description = "Path relative to which directories are rendered in the report. "
+ "This option allows shortening directories in the report; "
+ "without it, paths are rendered as mentioned in the source directory (option \"--dir\"). "
@@ -142,8 +143,7 @@ public class CpdCommand extends AbstractAnalysisPmdSubcommand<CPDConfiguration>
}
@Override
@NonNull
protected CliExitCode doExecute(CPDConfiguration configuration) {
protected @NonNull CliExitCode doExecute(CPDConfiguration configuration) {
try (CpdAnalysis cpd = CpdAnalysis.create(configuration)) {
MutableBoolean hasViolations = new MutableBoolean();