FmtUtil

scala.cli.commands.fmt.FmtUtil$
object FmtUtil

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
FmtUtil.type

Members list

Concise view

Type members

Classlikes

sealed abstract class ScalafmtDialect(val value: String)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Scala211.type
object Scala212.type
object Scala212Source3.type
object Scala213.type
object Scala213Source3.type
object Scala3.type

Attributes

Companion:
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

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.

Attributes

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

Attributes

Returns:

Scalafmt configuration content based on previousConfigText with updated fields