Format Scala code using scalafmt.
Format Scala code using scalafmt.
Code string to format.
Configuration for formatting output.
Configuration for how the formatting should run.
EXPERIMENTAL. Format a subset of lines.
FormatResult.Success if successful, FormatResult.Failure otherwise. If you are OK with throwing exceptions, use FormatResult.Success.get to get back a string.