Skip to content

Commit

Permalink
fixup! fix configuration cache problem with reports (#54)
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Schmid <service@aaschmid.de>
  • Loading branch information
aaschmid committed Mar 27, 2021
1 parent ee36de1 commit 94c4c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/aaschmid/gradle/plugins/cpd/Cpd.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void checkTaskState() {
if (getMinimumTokenCount() <= 0) {
throw new InvalidUserDataException(String.format("Task '%s' requires 'minimumTokenCount' to be greater than zero.", getName()));
}
if (reports.getEnabled().isEmpty()) {
if (getReports().getEnabled().isEmpty()) {
throw new InvalidUserDataException(String.format("Task '%s' requires at least one enabled report.", getName()));
}
}
Expand Down

0 comments on commit 94c4c1c

Please sign in to comment.