Skip to content

Commit

Permalink
always disable spotless task execution if target is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Lehmann committed Oct 23, 2024
1 parent 492977e commit bf22eb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ protected void createFormatTasks(String name, FormatExtension formatExtension) {
formatExtension.setupTask(task);
if (ideHookPath != null) {
var ideHookFile = project.file(ideHookPath);
task.setEnabled(task.getTarget().contains(ideHookFile));
var newTarget = task.getTarget().filter(ideHookFile::equals);
task.setTarget(newTarget);
}
task.setEnabled(!task.getTarget().isEmpty());
});
});

Expand Down

0 comments on commit bf22eb1

Please sign in to comment.