Skip to content

Commit

Permalink
Treat empty target as a warning (likely a mistake, e.g. #437).
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jan 31, 2023
1 parent 6f6b34f commit d7ff074
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ protected void process(Iterable<File> files, Formatter formatter, UpToDateChecke
getLog().info(String.format("Spotless.%s is keeping %s files clean - %s were changed to be clean, %s were already clean, %s were skipped because caching determined they were already clean",
formatter.getName(), totalProcessed, cleaned, checkedButAlreadyClean, skippedAsCleanCache));
} else {
getLog().debug(String.format("Spotless.%s is not considering a single file",
formatter.getName()));
getLog().warn(String.format("Spotless.%s has no target files. Examine your `<includes>`: https://github.com/diffplug/spotless/tree/main/plugin-maven#quickstart", formatter.getName()));
}
}
}

0 comments on commit d7ff074

Please sign in to comment.