FmtUtil

object FmtUtil
class Object
trait Matchable
class Any
FmtUtil.type

Type members

Classlikes

sealed abstract class ScalafmtDialect(val value: String)
Companion:
object
Companion:
class

Value members

Concrete methods

def readVersionAndDialect(workspace: Path, options: FmtOptions, logger: Logger): (Option[String], Option[String], Option[Path])

Based on scalafmt comment. First we look for .scalafmt.conf file in the cwd. If not found we go to the git root and look there.

Based on scalafmt comment. First we look for .scalafmt.conf file in the cwd. If not found we go to the git root and look there.

Returns:

path to found .scalafmt.conf file and version with dialect read from it

def scalafmtConfigWithFields(previousConfigText: String, version: Option[String], runnerDialect: Option[ScalafmtDialect], fileOverride: Map[String, ScalafmtDialect]): String

Based on scalameta fmt config

Based on scalameta fmt config

Returns:

Scalafmt configuration content based on previousConfigText with updated fields