in src/main/java/com/spotify/fmt/Formatter.java [60:74]
FormattingResult format() throws FormatterException {
JavaFormatterOptions.Style style = style();
com.google.googlejavaformat.java.Formatter formatter = getFormatter(style);
for (File directoryToFormat : cfg.directoriesToFormat()) {
formatSourceFilesInDirectory(directoryToFormat, formatter, style);
}
logNumberOfFilesProcessed();
return FormattingResult.builder()
.nonComplyingFiles(nonComplyingFiles)
.processedFiles(processedFiles)
.build();
}