FmtUtil
object FmtUtil
Type members
Classlikes
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 andversion
withdialect
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