public interface ScalafmtReporter
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStreamWriter |
downloadOutputStreamWriter()
Use this writer for printing progress while downloading new Scalafmt versions.
|
java.io.PrintWriter |
downloadWriter()
Deprecated.
|
void |
error(java.nio.file.Path file,
java.lang.String message)
An error occurred while trying to process this file.
|
default void |
error(java.nio.file.Path file,
java.lang.String message,
java.lang.Throwable e)
An exception occurred while trying to process this file.
|
void |
error(java.nio.file.Path file,
java.lang.Throwable e)
An exception occurred while trying to process this file.
|
void |
excluded(java.nio.file.Path file)
This file was not formatted because it's excluded by project settings from .scalafmt.conf.
|
default void |
missingVersion(java.nio.file.Path config,
java.lang.String defaultVersion)
This .scalafmt.conf file is missing the 'version' setting.
|
void |
parsedConfig(java.nio.file.Path config,
java.lang.String scalafmtVersion)
Record the configuration file and version used
|
void error(java.nio.file.Path file,
java.lang.String message)
file - can be either a Scala source file or .scalafmt.conf.message - the error message.void error(java.nio.file.Path file,
java.lang.Throwable e)
file - can be either a Scala source file or .scalafmt.conf.e - the exception that occurred, has type PositionException
when the error appeared as a position.default void error(java.nio.file.Path file,
java.lang.String message,
java.lang.Throwable e)
file - can be either a Scala source file or .scalafmt.conf.message - additional error messagee - the exception that occurred, has type PositionException
when the error appeared as a position.void excluded(java.nio.file.Path file)
file - the file path that was not formatted.default void missingVersion(java.nio.file.Path config,
java.lang.String defaultVersion)
config - the .scalafmt.conf file.defaultVersion - the configured default Scalafmt version.void parsedConfig(java.nio.file.Path config,
java.lang.String scalafmtVersion)
config - location of the configuration file parsedscalafmtVersion - the version of scalafmt used to parse@Deprecated java.io.PrintWriter downloadWriter()
downloadOutputStreamWriter() instead.java.io.OutputStreamWriter downloadOutputStreamWriter()