File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/org/apache/maven/plugins/pmd Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ public boolean canGenerateReport()
185
185
if ( skipEmptyReport )
186
186
{
187
187
result = cpdResult .hasDuplications ();
188
- if ( result )
188
+ if ( ! result )
189
189
{
190
190
getLog ().debug ( "Skipping report since skipEmptyReport is true and there are no CPD issues." );
191
191
}
@@ -232,11 +232,11 @@ private void executeCpd()
232
232
request .setLanguageProperties ( languageProperties );
233
233
request .setSourceEncoding ( determineEncoding ( !filesToProcess .isEmpty () ) );
234
234
request .addFiles ( filesToProcess .keySet () );
235
-
235
+
236
236
request .setShowPmdLog ( showPmdLog );
237
237
request .setColorizedLog ( MessageUtils .isColorEnabled () );
238
238
request .setLogLevel ( determineCurrentRootLogLevel () );
239
-
239
+
240
240
request .setExcludeFromFailureFile ( excludeFromFailureFile );
241
241
request .setTargetDirectory ( targetDirectory .getAbsolutePath () );
242
242
request .setOutputEncoding ( getOutputEncoding () );
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ public boolean canGenerateReport()
337
337
if ( skipEmptyReport )
338
338
{
339
339
result = pmdResult .hasViolations ();
340
- if ( result )
340
+ if ( ! result )
341
341
{
342
342
getLog ().debug ( "Skipping report since skipEmptyReport is true and "
343
343
+ "there are no PMD violations." );
You can’t perform that action at this time.
0 commit comments