Utility method to change dialect on ScalafmtConfig.
Utility method to change dialect on ScalafmtConfig.
Binary compatibility is guaranteed between releases, unlike with ScalafmtConfig.copy.
Format Scala code using scalafmt.
Format Scala code using scalafmt.
WARNING. This API is discouraged when integrating with Scalafmt from a build tool
or editor plugin. It is recommended to use the scalafmt-dynamic
module instead.
Code string to format.
Configuration for formatting output.
EXPERIMENTAL. Format a subset of lines.
Formatted.Success if successful, Formatted.Failure otherwise. If you are OK with throwing exceptions, use Formatted.Success.get to get back a string.
WARNING. This API is discouraged when integrating with Scalafmt from a build tool or editor plugin. It is recommended to use the
scalafmt-dynamic
module instead.