Skip to content

Commit

Permalink
Log if baseline generation was successful
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed May 11, 2024
1 parent 251425c commit 6946a3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/rife/bld/extension/DetektOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,12 @@ public DetektOperation excludes(String patterns) {
public void execute() throws IOException, FileUtilsErrorException, InterruptedException, ExitStatusException {
super.execute();
if (successful_ && LOGGER.isLoggable(Level.INFO)) {
LOGGER.info("Detekt executed successfully.");
if (createBaseline_) {
LOGGER.info("Detekt baseline successfully generated: "
+ "file://" + new File(baseline_).toURI().getPath());
} else {
LOGGER.info("Detekt executed successfully.");
}
}
}

Expand Down

0 comments on commit 6946a3c

Please sign in to comment.