Log if baseline generation was successful

This commit is contained in:
Erik C. Thauvin 2024-05-11 15:09:16 -07:00
parent 251425c625
commit 6946a3c26d
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -256,9 +256,14 @@ public class DetektOperation extends AbstractProcessOperation<DetektOperation> {
public void execute() throws IOException, FileUtilsErrorException, InterruptedException, ExitStatusException {
super.execute();
if (successful_ && LOGGER.isLoggable(Level.INFO)) {
if (createBaseline_) {
LOGGER.info("Detekt baseline successfully generated: "
+ "file://" + new File(baseline_).toURI().getPath());
} else {
LOGGER.info("Detekt executed successfully.");
}
}
}
/**
* Part of the {@link #execute} operation, constructs the command list